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

Side by Side Diff: src/log.h

Issue 20220: Fixing a few bugs to make the --log-state-change option work. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 10 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 | « no previous file | 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // Emits the source code of a regexp. Used by regexp events. 217 // Emits the source code of a regexp. Used by regexp events.
218 static void LogRegExpSource(Handle<JSRegExp> regexp); 218 static void LogRegExpSource(Handle<JSRegExp> regexp);
219 219
220 static void LogString(Handle<String> str, bool show_impl_info); 220 static void LogString(Handle<String> str, bool show_impl_info);
221 221
222 // Emits a profiler tick event. Used by the profiler thread. 222 // Emits a profiler tick event. Used by the profiler thread.
223 static void TickEvent(TickSample* sample, bool overflow); 223 static void TickEvent(TickSample* sample, bool overflow);
224 224
225 static void ApiEvent(const char* name, ...); 225 static void ApiEvent(const char* name, ...);
226 226
227 // Logs a StringEvent regardless of whether FLAG_log is true.
228 static void UncheckedStringEvent(const char* name, const char* value);
229
227 // When logging is active, logfile_ refers the file 230 // When logging is active, logfile_ refers the file
228 // events are written to. 231 // events are written to.
229 static FILE* logfile_; 232 static FILE* logfile_;
230 233
231 // The sampler used by the profiler and the sliding state window. 234 // The sampler used by the profiler and the sliding state window.
232 static Ticker* ticker_; 235 static Ticker* ticker_;
233 236
234 // When the statistical profile is active, profiler_ 237 // When the statistical profile is active, profiler_
235 // points to a Profiler, that handles collection 238 // points to a Profiler, that handles collection
236 // of samples. 239 // of samples.
(...skipping 17 matching lines...) Expand all
254 friend class Profiler; 257 friend class Profiler;
255 friend class SlidingStateWindow; 258 friend class SlidingStateWindow;
256 friend class VMState; 259 friend class VMState;
257 #endif 260 #endif
258 }; 261 };
259 262
260 263
261 } } // namespace v8::internal 264 } } // namespace v8::internal
262 265
263 #endif // V8_LOG_H_ 266 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « no previous file | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698