Files
sdk/tests/lib/developer/timeline_recorders_test.dart
T
Lasse R.H. Nielsen 7e75d881a0 Tweak test_runner.
Clean up and optimize some RegExps, and fix uses of `.group`.
Switch to a newer language version, to be able to use newer features.
Add a little documentation about why some RegExps are as they are.

Add (tentative) warning for multitests.

Change-Id: I59f73b87ce30caaeca1c0e0aa7954af1b97abd1b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/382620
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
2024-09-10 15:29:28 +00:00

24 lines
748 B
Dart

// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// VMOptions=--timeline_streams=VM,Isolate,GC,Dart --timeline_recorder=endless
// VMOptions=--timeline_streams=VM,Isolate,GC,Dart --timeline_recorder=ring
// VMOptions=--timeline_streams=VM,Isolate,GC,Dart --timeline_recorder=startup
// VMOptions=--timeline_streams=VM,Isolate,GC,Dart --timeline_recorder=systrace
import 'dart:developer';
void main() {
Timeline.startSync('A');
Timeline.instantSync('B');
var task = new TimelineTask();
task.start('C');
task.instant('D');
task.finish();
Timeline.finishSync();
}