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

Unified Diff: src/profile-generator-inl.h

Issue 1079006: Add basic C++ implementation of CPU profiler. (Closed)
Patch Set: Comments addressed Created 10 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
« no previous file with comments | « src/profile-generator.cc ('k') | src/runtime.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/profile-generator-inl.h
diff --git a/src/profile-generator-inl.h b/src/profile-generator-inl.h
index 090ad8f30e57a9091007792af003ff752a3b500e..5e92be47017b178971e348fb983505ecdf3b5921 100644
--- a/src/profile-generator-inl.h
+++ b/src/profile-generator-inl.h
@@ -34,6 +34,17 @@ namespace v8 {
namespace internal {
+CodeEntry::CodeEntry(Logger::LogEventsAndTags tag,
+ const char* name,
+ const char* resource_name,
+ int line_number)
+ : tag_(tag),
+ name_(name),
+ resource_name_(resource_name),
+ line_number_(line_number) {
+}
+
+
bool CodeEntry::is_js_function() {
return tag_ == Logger::FUNCTION_TAG
|| tag_ == Logger::LAZY_COMPILE_TAG
@@ -41,24 +52,6 @@ bool CodeEntry::is_js_function() {
}
-StaticNameCodeEntry::StaticNameCodeEntry(Logger::LogEventsAndTags tag,
- const char* name)
- : CodeEntry(tag),
- name_(name) {
-}
-
-
-ManagedNameCodeEntry::ManagedNameCodeEntry(Logger::LogEventsAndTags tag,
- String* name,
- const char* resource_name,
- int line_number)
- : CodeEntry(tag),
- name_(name->ToCString(DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL).Detach()),
- resource_name_(resource_name),
- line_number_(line_number) {
-}
-
-
ProfileNode::ProfileNode(CodeEntry* entry)
: entry_(entry),
total_ticks_(0),
« no previous file with comments | « src/profile-generator.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698