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

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
« no previous file with comments | « runtime/vm/native_entry.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 32801)
+++ runtime/vm/object.cc (working copy)
@@ -900,7 +900,7 @@
RawError* Object::Init(Isolate* isolate) {
- TIMERSCOPE(time_bootstrap);
+ TIMERSCOPE(isolate, time_bootstrap);
ObjectStore* object_store = isolate->object_store();
Class& cls = Class::Handle();
@@ -1334,7 +1334,7 @@
void Object::InitFromSnapshot(Isolate* isolate) {
- TIMERSCOPE(time_bootstrap);
+ TIMERSCOPE(isolate, time_bootstrap);
ObjectStore* object_store = isolate->object_store();
Class& cls = Class::Handle();
@@ -7294,11 +7294,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();
}
« no previous file with comments | « runtime/vm/native_entry.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698