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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_PROFILER_SERVICE_H_ 5 #ifndef VM_PROFILER_SERVICE_H_
6 #define VM_PROFILER_SERVICE_H_ 6 #define VM_PROFILER_SERVICE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/code_observers.h" 9 #include "vm/code_observers.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const Function& function, 66 const Function& function,
67 const intptr_t table_index); 67 const intptr_t table_index);
68 68
69 const char* name() const { 69 const char* name() const {
70 ASSERT(name_ != NULL); 70 ASSERT(name_ != NULL);
71 return name_; 71 return name_;
72 } 72 }
73 73
74 const char* Name() const; 74 const char* Name() const;
75 75
76 RawFunction* function() const { 76 const Function* function() const {
77 return function_.raw(); 77 return &function_;
78 } 78 }
79 79
80 intptr_t table_index() const { 80 intptr_t table_index() const {
81 return table_index_; 81 return table_index_;
82 } 82 }
83 83
84 Kind kind() const { 84 Kind kind() const {
85 return kind_; 85 return kind_;
86 } 86 }
87 87
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 JSONStream* stream, 464 JSONStream* stream,
465 Profile::TagOrder tag_order, 465 Profile::TagOrder tag_order,
466 intptr_t extra_tags, 466 intptr_t extra_tags,
467 SampleFilter* filter, 467 SampleFilter* filter,
468 bool as_timline); 468 bool as_timline);
469 }; 469 };
470 470
471 } // namespace dart 471 } // namespace dart
472 472
473 #endif // VM_PROFILER_SERVICE_H_ 473 #endif // VM_PROFILER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698