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

Side by Side Diff: include/v8-profiler.h

Issue 2328673003: [profiler] Add two CpuProfileNode API functions to allow thread safe access to the node. (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | src/api.cc » ('j') | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_V8_PROFILER_H_ 5 #ifndef V8_V8_PROFILER_H_
6 #define V8_V8_PROFILER_H_ 6 #define V8_V8_PROFILER_H_
7 7
8 #include <vector> 8 #include <vector>
9 #include "v8.h" // NOLINT(build/include) 9 #include "v8.h" // NOLINT(build/include)
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 /** The 1-based number of the source line where the function originates. */ 124 /** The 1-based number of the source line where the function originates. */
125 int line; 125 int line;
126 126
127 /** The count of samples associated with the source line. */ 127 /** The count of samples associated with the source line. */
128 unsigned int hit_count; 128 unsigned int hit_count;
129 }; 129 };
130 130
131 /** Returns function name (empty string for anonymous functions.) */ 131 /** Returns function name (empty string for anonymous functions.) */
132 Local<String> GetFunctionName() const; 132 Local<String> GetFunctionName() const;
133 133
134 /**
135 * Returns function name (empty string for anonymous functions.)
136 * The string ownership is *not* passed to the caller. It stays valid until
137 * profile is deleted. The function is thread safe.
138 */
139 const char* GetFunctionNameStr() const;
140
134 /** Returns id of the script where function is located. */ 141 /** Returns id of the script where function is located. */
135 int GetScriptId() const; 142 int GetScriptId() const;
136 143
137 /** Returns resource name for script from where the function originates. */ 144 /** Returns resource name for script from where the function originates. */
138 Local<String> GetScriptResourceName() const; 145 Local<String> GetScriptResourceName() const;
139 146
140 /** 147 /**
148 * Returns resource name for script from where the function originates.
149 * The string ownership is *not* passed to the caller. It stays valid until
150 * profile is deleted. The function is thread safe.
151 */
152 const char* GetScriptResourceNameStr() const;
153
154 /**
141 * Returns the number, 1-based, of the line where the function originates. 155 * Returns the number, 1-based, of the line where the function originates.
142 * kNoLineNumberInfo if no line number information is available. 156 * kNoLineNumberInfo if no line number information is available.
143 */ 157 */
144 int GetLineNumber() const; 158 int GetLineNumber() const;
145 159
146 /** 160 /**
147 * Returns 1-based number of the column where the function originates. 161 * Returns 1-based number of the column where the function originates.
148 * kNoColumnNumberInfo if no column number information is available. 162 * kNoColumnNumberInfo if no column number information is available.
149 */ 163 */
150 int GetColumnNumber() const; 164 int GetColumnNumber() const;
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 uint32_t index; // Index of the time interval that was changed. 874 uint32_t index; // Index of the time interval that was changed.
861 uint32_t count; // New value of count field for the interval with this index. 875 uint32_t count; // New value of count field for the interval with this index.
862 uint32_t size; // New value of size field for the interval with this index. 876 uint32_t size; // New value of size field for the interval with this index.
863 }; 877 };
864 878
865 879
866 } // namespace v8 880 } // namespace v8
867 881
868 882
869 #endif // V8_V8_PROFILER_H_ 883 #endif // V8_V8_PROFILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698