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

Unified Diff: runtime/vm/object.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
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 32362)
+++ runtime/vm/object.cc (working copy)
@@ -885,7 +885,7 @@
RawError* Object::Init(Isolate* isolate) {
- TIMERSCOPE(time_bootstrap);
+ TIMERSCOPE(isolate, time_bootstrap);
ObjectStore* object_store = isolate->object_store();
Class& cls = Class::Handle();
@@ -1319,7 +1319,7 @@
void Object::InitFromSnapshot(Isolate* isolate) {
- TIMERSCOPE(time_bootstrap);
+ TIMERSCOPE(isolate, time_bootstrap);
ObjectStore* object_store = isolate->object_store();
Class& cls = Class::Handle();
@@ -7385,11 +7385,12 @@
}
// Get the source, scan and allocate the token stream.
- TimerScope timer(FLAG_compiler_stats, &CompilerStats::scanner_timer);
- const String& src = String::Handle(Source());
+ Isolate* isolate = Isolate::Current();
+ TimerScope timer(FLAG_compiler_stats, &CompilerStats::scanner_timer, isolate);
+ const String& src = String::Handle(isolate, Source());
Scanner scanner(src, private_key);
- set_tokens(TokenStream::Handle(TokenStream::New(scanner.GetStream(),
- private_key)));
+ set_tokens(TokenStream::Handle(isolate, TokenStream::New(scanner.GetStream(),
+ private_key)));
if (FLAG_compiler_stats) {
CompilerStats::src_length += src.Length();
}

Powered by Google App Engine
This is Rietveld 408576698