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

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

Issue 16286016: Notify CPU profiler when calling native getters (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed check that pthread_kill always succeeds 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/assembler.h ('k') | src/ia32/macro-assembler-ia32.h » ('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 }
251 254
252 private: 255 private:
253 void StartProcessorIfNotStarted(); 256 void StartProcessorIfNotStarted();
254 void StopProcessorIfLastProfile(const char* title); 257 void StopProcessorIfLastProfile(const char* title);
255 void StopProcessor(); 258 void StopProcessor();
256 void ResetProfiles(); 259 void ResetProfiles();
257 260
258 Isolate* isolate_; 261 Isolate* isolate_;
259 CpuProfilesCollection* profiles_; 262 CpuProfilesCollection* profiles_;
260 unsigned next_profile_uid_; 263 unsigned next_profile_uid_;
261 TokenEnumerator* token_enumerator_; 264 TokenEnumerator* token_enumerator_;
262 ProfileGenerator* generator_; 265 ProfileGenerator* generator_;
263 ProfilerEventsProcessor* processor_; 266 ProfilerEventsProcessor* processor_;
264 int saved_logging_nesting_; 267 int saved_logging_nesting_;
265 bool need_to_stop_sampler_; 268 bool need_to_stop_sampler_;
266 bool is_profiling_; 269 bool is_profiling_;
267 270
268 private: 271 private:
269 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); 272 DISALLOW_COPY_AND_ASSIGN(CpuProfiler);
270 }; 273 };
271 274
272 } } // namespace v8::internal 275 } } // namespace v8::internal
273 276
274 277
275 #endif // V8_CPU_PROFILER_H_ 278 #endif // V8_CPU_PROFILER_H_
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698