Flutter Engine
The Flutter Engine
third_party
dart-lang
sdk
runtime
vm
timer.cc
Go to the documentation of this file.
1
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2
// for details. All rights reserved. Use of this source code is governed by a
3
// BSD-style license that can be found in the LICENSE file.
4
5
#include "
vm/timer.h
"
6
#include "
platform/globals.h
"
7
#include "
vm/json_stream.h
"
8
#include "
vm/thread.h
"
9
10
namespace
dart
{
11
12
PrintTimeScope::~PrintTimeScope
() {
13
timer_.
Stop
();
14
OS::PrintErr
(
"%s %s\n"
, name_,
15
timer_.
FormatElapsedHumanReadable
(
Thread::Current
()->
zone
()));
16
}
17
18
}
// namespace dart
dart::OS::PrintErr
static void static void PrintErr(const char *format,...) PRINTF_ATTRIBUTE(1
dart::PrintTimeScope::~PrintTimeScope
~PrintTimeScope()
Definition:
timer.cc:12
dart::ThreadState::zone
Zone * zone() const
Definition:
thread_state.h:37
dart::Thread::Current
static Thread * Current()
Definition:
thread.h:362
dart::Timer::FormatElapsedHumanReadable
const char * FormatElapsedHumanReadable(Zone *zone) const
Definition:
timer.h:140
dart::Timer::Stop
void Stop()
Definition:
timer.h:117
json_stream.h
dart
Definition:
dart_vm.cc:33
globals.h
thread.h
timer.h
Generated on Sun Jun 23 2024 21:55:50 for Flutter Engine by
1.9.4