perf(go): add runtime metrics and benchmarks

This commit is contained in:
zarzet
2026-07-16 10:53:26 +07:00
parent b5d02da759
commit 648f36244b
7 changed files with 194 additions and 1 deletions
+5
View File
@@ -1176,6 +1176,11 @@ class PlatformBridge {
} catch (_) {}
}
static Future<Map<String, dynamic>> getGoRuntimeMetrics() async {
final result = await _channel.invokeMethod('getGoRuntimeMetrics');
return _decodeRequiredMapResult(result, 'getGoRuntimeMetrics');
}
/// Tells the backend the app's display language so metadata providers
/// localize by it instead of IP geolocation. Best-effort.
static Future<void> setMetadataLanguage(String tag) async {