Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1063)

Unified Diff: runtime/vm/dart.cc

Issue 137483010: Add more timing information in the VM to track time spent is dart code Vs native code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/compiler_test.cc ('k') | runtime/vm/dart_api_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart.cc
===================================================================
--- runtime/vm/dart.cc (revision 32801)
+++ runtime/vm/dart.cc (working copy)
@@ -138,6 +138,7 @@
// There is a planned and known asymmetry here: We enter one scope for the VM
// isolate so that we can allocate the "persistent" scoped handles for the
// predefined API values (such as Dart_True, Dart_False and Dart_Null).
+ START_TIMER(vm_isolate_, time_native_execution);
Dart_EnterScope();
Api::InitHandles();
@@ -171,6 +172,7 @@
// There is a planned and known asymmetry here: We exit one scope for the VM
// isolate to account for the scope that was entered in Dart_InitOnce.
Dart_ExitScope();
+ STOP_TIMER(vm_isolate_, time_native_execution);
ShutdownIsolate();
vm_isolate_ = NULL;
@@ -193,8 +195,8 @@
RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) {
// Initialize the new isolate.
- TIMERSCOPE(time_isolate_initialization);
Isolate* isolate = Isolate::Current();
+ TIMERSCOPE(isolate, time_isolate_initialization);
ASSERT(isolate != NULL);
StackZone zone(isolate);
HandleScope handle_scope(isolate);
« no previous file with comments | « runtime/vm/compiler_test.cc ('k') | runtime/vm/dart_api_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698