Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 9e64d79

Browse files
authored
Add native for fetching compilation trace as a memory buffer (#7152)
1 parent 97d96bc commit 9e64d79

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/ui/natives.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ void saveCompilationTrace(String filePath) {
4545
file.writeAsBytesSync(result);
4646
}
4747

48+
List<int> dumpCompilationTrace() {
49+
final dynamic result = _saveCompilationTrace();
50+
if (result is Error)
51+
throw result;
52+
return result;
53+
}
54+
4855
dynamic _saveCompilationTrace() native 'SaveCompilationTrace';
4956

5057
void _scheduleMicrotask(void callback()) native 'ScheduleMicrotask';

0 commit comments

Comments
 (0)