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

Side by Side Diff: src/log.h

Issue 646007: Kill some unused code. (Closed)
Patch Set: some more Created 10 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
« 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 // Acquires resources for logging if the right flags are set. 155 // Acquires resources for logging if the right flags are set.
156 static bool Setup(); 156 static bool Setup();
157 157
158 // Frees resources acquired in Setup. 158 // Frees resources acquired in Setup.
159 static void TearDown(); 159 static void TearDown();
160 160
161 // Enable the computation of a sliding window of states. 161 // Enable the computation of a sliding window of states.
162 static void EnableSlidingStateWindow(); 162 static void EnableSlidingStateWindow();
163 163
164 // Write a raw string to the log to be used as a preamble.
165 // No check is made that the 'preamble' is actually at the beginning
166 // of the log. The preample is used to write code events saved in the
167 // snapshot.
168 static void Preamble(const char* content);
169
170 // Emits an event with a string value -> (name, value). 164 // Emits an event with a string value -> (name, value).
171 static void StringEvent(const char* name, const char* value); 165 static void StringEvent(const char* name, const char* value);
172 166
173 // Emits an event with an int value -> (name, value). 167 // Emits an event with an int value -> (name, value).
174 static void IntEvent(const char* name, int value); 168 static void IntEvent(const char* name, int value);
175 169
176 // Emits an event with an handle value -> (name, location). 170 // Emits an event with an handle value -> (name, location).
177 static void HandleEvent(const char* name, Object** location); 171 static void HandleEvent(const char* name, Object** location);
178 172
179 // Emits memory management events for C allocated structures. 173 // Emits memory management events for C allocated structures.
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 // Class that extracts stack trace, used for profiling. 384 // Class that extracts stack trace, used for profiling.
391 class StackTracer : public AllStatic { 385 class StackTracer : public AllStatic {
392 public: 386 public:
393 static void Trace(TickSample* sample); 387 static void Trace(TickSample* sample);
394 }; 388 };
395 389
396 390
397 } } // namespace v8::internal 391 } } // namespace v8::internal
398 392
399 #endif // V8_LOG_H_ 393 #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