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

Side by Side Diff: src/profile-generator-inl.h

Issue 1547023: C++ profiler: publish the new API, make compatible with WebKit / Chromium. (Closed)
Patch Set: comments addressed Created 10 years, 8 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
« no previous file with comments | « src/profile-generator.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 22 matching lines...) Expand all
33 #include "profile-generator.h" 33 #include "profile-generator.h"
34 34
35 namespace v8 { 35 namespace v8 {
36 namespace internal { 36 namespace internal {
37 37
38 CodeEntry::CodeEntry(Logger::LogEventsAndTags tag, 38 CodeEntry::CodeEntry(Logger::LogEventsAndTags tag,
39 const char* name_prefix, 39 const char* name_prefix,
40 const char* name, 40 const char* name,
41 const char* resource_name, 41 const char* resource_name,
42 int line_number) 42 int line_number)
43 : tag_(tag), 43 : call_uid_(next_call_uid_++),
44 tag_(tag),
44 name_prefix_(name_prefix), 45 name_prefix_(name_prefix),
45 name_(name), 46 name_(name),
46 resource_name_(resource_name), 47 resource_name_(resource_name),
47 line_number_(line_number) { 48 line_number_(line_number) {
48 } 49 }
49 50
50 51
51 bool CodeEntry::is_js_function() const { 52 bool CodeEntry::is_js_function() const {
52 return tag_ == Logger::FUNCTION_TAG 53 return tag_ == Logger::FUNCTION_TAG
53 || tag_ == Logger::LAZY_COMPILE_TAG 54 || tag_ == Logger::LAZY_COMPILE_TAG
(...skipping 29 matching lines...) Expand all
83 // Called from VM thread, and only it can mutate the list, 84 // Called from VM thread, and only it can mutate the list,
84 // so no locking is needed here. 85 // so no locking is needed here.
85 return current_profiles_.length() == 1; 86 return current_profiles_.length() == 1;
86 } 87 }
87 88
88 } } // namespace v8::internal 89 } } // namespace v8::internal
89 90
90 #endif // ENABLE_CPP_PROFILES_PROCESSOR 91 #endif // ENABLE_CPP_PROFILES_PROCESSOR
91 92
92 #endif // V8_PROFILE_GENERATOR_INL_H_ 93 #endif // V8_PROFILE_GENERATOR_INL_H_
OLDNEW
« no previous file with comments | « src/profile-generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698