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

Unified Diff: runtime/vm/profiler_service.h

Issue 1830473002: Speedup function profile by using a hash table instead of a linear scan (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: self review Created 4 years, 9 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/profiler_service.h
diff --git a/runtime/vm/profiler_service.h b/runtime/vm/profiler_service.h
index 4bd64da740283b6478f04b69efff3a5f71f00fb2..269ce1dd0238ef6b238b79b7fc1ad6016320c3be 100644
--- a/runtime/vm/profiler_service.h
+++ b/runtime/vm/profiler_service.h
@@ -77,6 +77,10 @@ class ProfileFunction : public ZoneAllocated {
return function_.raw();
}
+ const Function* key() const {
+ return &function_;
+ }
Ivan Posva 2016/03/23 15:14:40 Looking at this again this definitely should be co
Cutch 2016/03/23 19:34:21 Done.
+
intptr_t table_index() const {
return table_index_;
}

Powered by Google App Engine
This is Rietveld 408576698