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

Side by Side Diff: src/log.h

Issue 112036: Introduce Logger::LogCompiledFunctions that logs current map of compiled code. (Closed)
Patch Set: struct -> class Created 11 years, 7 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/compiler.cc ('k') | src/log.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // When data collection is paused, Tick events are discarded until 207 // When data collection is paused, Tick events are discarded until
208 // data collection is Resumed. 208 // data collection is Resumed.
209 static bool IsProfilerPaused(); 209 static bool IsProfilerPaused();
210 static void PauseProfiler(); 210 static void PauseProfiler();
211 static void ResumeProfiler(); 211 static void ResumeProfiler();
212 212
213 // If logging is performed into a memory buffer, allows to 213 // If logging is performed into a memory buffer, allows to
214 // retrieve previously written messages. See v8.h. 214 // retrieve previously written messages. See v8.h.
215 static int GetLogLines(int from_pos, char* dest_buf, int max_size); 215 static int GetLogLines(int from_pos, char* dest_buf, int max_size);
216 216
217 // Logs all compiled functions found in the heap.
218 static void LogCompiledFunctions();
219
217 private: 220 private:
218 221
219 // Emits the source code of a regexp. Used by regexp events. 222 // Emits the source code of a regexp. Used by regexp events.
220 static void LogRegExpSource(Handle<JSRegExp> regexp); 223 static void LogRegExpSource(Handle<JSRegExp> regexp);
221 224
222 // Emits a profiler tick event. Used by the profiler thread. 225 // Emits a profiler tick event. Used by the profiler thread.
223 static void TickEvent(TickSample* sample, bool overflow); 226 static void TickEvent(TickSample* sample, bool overflow);
224 227
225 static void ApiEvent(const char* name, ...); 228 static void ApiEvent(const char* name, ...);
226 229
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 void Trace(TickSample* sample); 269 void Trace(TickSample* sample);
267 private: 270 private:
268 271
269 uintptr_t low_stack_bound_; 272 uintptr_t low_stack_bound_;
270 }; 273 };
271 274
272 275
273 } } // namespace v8::internal 276 } } // namespace v8::internal
274 277
275 #endif // V8_LOG_H_ 278 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698