blob: 710fdf451741e55e595bff82cab1b672afabe45d [file] [log] [blame]
// Copyright (c) 2023, 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-recorder=ring --timeline-streams=Dart
import 'dart:developer';
void main() {
for (int i = 0; i < 100000; i++) {
// OneByteString, ASCII
Timeline.startSync('ASCII', arguments: {'arg': 'ASCII'});
Timeline.finishSync();
// OneByteString, Latin1
Timeline.startSync('blåbærgrød', arguments: {'arg': 'blåbærgrød'});
Timeline.finishSync();
// TwoByteString
Timeline.startSync(
'Îñţérñåţîöñåļîžåţîờñ',
arguments: {'arg': 'Îñţérñåţîöñåļîžåţîờñ'},
);
Timeline.finishSync();
}
}