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

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: 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..7280b15fd2209346a549df17c7d5ee5fbbf3f683 100644
--- a/runtime/vm/profiler_service.h
+++ b/runtime/vm/profiler_service.h
@@ -73,8 +73,8 @@ class ProfileFunction : public ZoneAllocated {
const char* Name() const;
- RawFunction* function() const {
- return function_.raw();
+ const Function* function() const {
+ return &function_;
}
intptr_t table_index() const {

Powered by Google App Engine
This is Rietveld 408576698