Unverified Commit 97d5cd5e authored by Kevin Moore's avatar Kevin Moore Committed by GitHub

flutter tool: log dart2wasm vs dart2js as appropriate during build (#124331)

flutter tool: log dart2wasm vs dart2js as appropriate during build
parent e6257302
...@@ -119,7 +119,11 @@ class WebBuilder { ...@@ -119,7 +119,11 @@ class WebBuilder {
} finally { } finally {
status.stop(); status.stop();
} }
_flutterUsage.sendTiming('build', 'dart2js', Duration(milliseconds: sw.elapsedMilliseconds)); _flutterUsage.sendTiming(
'build',
compilerConfig.isWasm ? 'dart2wasm' : 'dart2js',
Duration(milliseconds: sw.elapsedMilliseconds),
);
} }
} }
......
...@@ -78,7 +78,7 @@ void main() { ...@@ -78,7 +78,7 @@ void main() {
// Sends timing event. // Sends timing event.
final TestTimingEvent timingEvent = testUsage.timings.single; final TestTimingEvent timingEvent = testUsage.timings.single;
expect(timingEvent.category, 'build'); expect(timingEvent.category, 'build');
expect(timingEvent.variableName, 'dart2js'); expect(timingEvent.variableName, 'dart2wasm');
}); });
testUsingContext('WebBuilder throws tool exit on failure', () async { testUsingContext('WebBuilder throws tool exit on failure', () async {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment