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

Side by Side Diff: src/cpu-profiler.h

Issue 17162002: Version 3.19.17. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/d8-readline.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 Code* code, int args_count); 241 Code* code, int args_count);
242 void CodeMovingGCEvent() {} 242 void CodeMovingGCEvent() {}
243 void CodeMoveEvent(Address from, Address to); 243 void CodeMoveEvent(Address from, Address to);
244 void CodeDeleteEvent(Address from); 244 void CodeDeleteEvent(Address from);
245 void GetterCallbackEvent(Name* name, Address entry_point); 245 void GetterCallbackEvent(Name* name, Address entry_point);
246 void RegExpCodeCreateEvent(Code* code, String* source); 246 void RegExpCodeCreateEvent(Code* code, String* source);
247 void SetterCallbackEvent(Name* name, Address entry_point); 247 void SetterCallbackEvent(Name* name, Address entry_point);
248 void SharedFunctionInfoMoveEvent(Address from, Address to); 248 void SharedFunctionInfoMoveEvent(Address from, Address to);
249 249
250 INLINE(bool is_profiling() const) { return is_profiling_; } 250 INLINE(bool is_profiling() const) { return is_profiling_; }
251 bool* is_profiling_address() {
252 return &is_profiling_;
253 }
254 251
255 private: 252 private:
256 void StartProcessorIfNotStarted(); 253 void StartProcessorIfNotStarted();
257 void StopProcessorIfLastProfile(const char* title); 254 void StopProcessorIfLastProfile(const char* title);
258 void StopProcessor(); 255 void StopProcessor();
259 void ResetProfiles(); 256 void ResetProfiles();
260 257
261 Isolate* isolate_; 258 Isolate* isolate_;
262 CpuProfilesCollection* profiles_; 259 CpuProfilesCollection* profiles_;
263 unsigned next_profile_uid_; 260 unsigned next_profile_uid_;
264 TokenEnumerator* token_enumerator_; 261 TokenEnumerator* token_enumerator_;
265 ProfileGenerator* generator_; 262 ProfileGenerator* generator_;
266 ProfilerEventsProcessor* processor_; 263 ProfilerEventsProcessor* processor_;
267 int saved_logging_nesting_; 264 int saved_logging_nesting_;
268 bool need_to_stop_sampler_; 265 bool need_to_stop_sampler_;
269 bool is_profiling_; 266 bool is_profiling_;
270 267
271 private: 268 private:
272 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); 269 DISALLOW_COPY_AND_ASSIGN(CpuProfiler);
273 }; 270 };
274 271
275 } } // namespace v8::internal 272 } } // namespace v8::internal
276 273
277 274
278 #endif // V8_CPU_PROFILER_H_ 275 #endif // V8_CPU_PROFILER_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/d8-readline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698