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

Side by Side Diff: src/log.h

Issue 21406: Changed all log messages to be handled through the LogMessageBuilder instead ... (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 | « src/flag-definitions.h ('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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // data collection is Resumed. 211 // data collection is Resumed.
212 static bool IsProfilerPaused(); 212 static bool IsProfilerPaused();
213 static void PauseProfiler(); 213 static void PauseProfiler();
214 static void ResumeProfiler(); 214 static void ResumeProfiler();
215 215
216 private: 216 private:
217 217
218 // Emits the source code of a regexp. Used by regexp events. 218 // Emits the source code of a regexp. Used by regexp events.
219 static void LogRegExpSource(Handle<JSRegExp> regexp); 219 static void LogRegExpSource(Handle<JSRegExp> regexp);
220 220
221 static void LogString(Handle<String> str, bool show_impl_info);
222
223 // Emits a profiler tick event. Used by the profiler thread. 221 // Emits a profiler tick event. Used by the profiler thread.
224 static void TickEvent(TickSample* sample, bool overflow); 222 static void TickEvent(TickSample* sample, bool overflow);
225 223
226 static void ApiEvent(const char* name, ...); 224 static void ApiEvent(const char* name, ...);
227 225
228 // Logs a StringEvent regardless of whether FLAG_log is true. 226 // Logs a StringEvent regardless of whether FLAG_log is true.
229 static void UncheckedStringEvent(const char* name, const char* value); 227 static void UncheckedStringEvent(const char* name, const char* value);
230 228
231 // Size of buffer used for formatting log messages. 229 // Size of buffer used for formatting log messages.
232 static const int kMessageBufferSize = 256; 230 static const int kMessageBufferSize = 256;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 friend class Profiler; 264 friend class Profiler;
267 friend class SlidingStateWindow; 265 friend class SlidingStateWindow;
268 friend class VMState; 266 friend class VMState;
269 #endif 267 #endif
270 }; 268 };
271 269
272 270
273 } } // namespace v8::internal 271 } } // namespace v8::internal
274 272
275 #endif // V8_LOG_H_ 273 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698