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

Side by Side Diff: src/log.h

Issue 8655: Fixing profiling when using snapshot. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 1 month 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 static bool Setup(); 102 static bool Setup();
103 103
104 // Closes file opened in Setup. 104 // Closes file opened in Setup.
105 static void TearDown(); 105 static void TearDown();
106 106
107 // Enable the computation of a sliding window of states. 107 // Enable the computation of a sliding window of states.
108 static void EnableSlidingStateWindow(); 108 static void EnableSlidingStateWindow();
109 109
110 // Write a raw string to the log to be used as a preamble. 110 // Write a raw string to the log to be used as a preamble.
111 // No check is made that the 'preamble' is actually at the beginning 111 // No check is made that the 'preamble' is actually at the beginning
112 // of the log. 112 // of the log. The preample is used to write code events saved in the
113 // snapshot.
113 static void Preamble(const char* content); 114 static void Preamble(const char* content);
114 115
115 // ==== Events that are always logged. ==== 116 // ==== Events that are always logged. ====
116 // Emits an event with a string value -> (name, value). 117 // Emits an event with a string value -> (name, value).
117 static void StringEvent(const char* name, const char* value); 118 static void StringEvent(const char* name, const char* value);
118 119
119 // Emits an event with an int value -> (name, value). 120 // Emits an event with an int value -> (name, value).
120 static void IntEvent(const char* name, int value); 121 static void IntEvent(const char* name, int value);
121 122
122 // Emits an event with an handle value -> (name, location). 123 // Emits an event with an handle value -> (name, location).
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 friend class Profiler; 237 friend class Profiler;
237 friend class SlidingStateWindow; 238 friend class SlidingStateWindow;
238 friend class VMState; 239 friend class VMState;
239 #endif 240 #endif
240 }; 241 };
241 242
242 243
243 } } // namespace v8::internal 244 } } // namespace v8::internal
244 245
245 #endif // V8_LOG_H_ 246 #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