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

Side by Side Diff: src/log.h

Issue 1877823003: Revert of Fix printf formats (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/isolate.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_LOG_H_ 5 #ifndef V8_LOG_H_
6 #define V8_LOG_H_ 6 #define V8_LOG_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
11 #include "src/base/compiler-specific.h"
12 #include "src/base/platform/elapsed-timer.h" 11 #include "src/base/platform/elapsed-timer.h"
13 #include "src/base/platform/platform.h" 12 #include "src/base/platform/platform.h"
14 #include "src/objects.h" 13 #include "src/objects.h"
15 14
16 namespace v8 { 15 namespace v8 {
17 16
18 namespace base { 17 namespace base {
19 class Semaphore; 18 class Semaphore;
20 } 19 }
21 20
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 347
349 // Used for logging stubs found in the snapshot. 348 // Used for logging stubs found in the snapshot.
350 void LogCodeObject(Object* code_object); 349 void LogCodeObject(Object* code_object);
351 350
352 // Helper method. It resets name_buffer_ and add tag name into it. 351 // Helper method. It resets name_buffer_ and add tag name into it.
353 void InitNameBuffer(LogEventsAndTags tag); 352 void InitNameBuffer(LogEventsAndTags tag);
354 353
355 // Emits a profiler tick event. Used by the profiler thread. 354 // Emits a profiler tick event. Used by the profiler thread.
356 void TickEvent(TickSample* sample, bool overflow); 355 void TickEvent(TickSample* sample, bool overflow);
357 356
358 PRINTF_FORMAT(2, 3) void ApiEvent(const char* format, ...); 357 void ApiEvent(const char* name, ...);
359 358
360 // Logs a StringEvent regardless of whether FLAG_log is true. 359 // Logs a StringEvent regardless of whether FLAG_log is true.
361 void UncheckedStringEvent(const char* name, const char* value); 360 void UncheckedStringEvent(const char* name, const char* value);
362 361
363 // Logs an IntEvent regardless of whether FLAG_log is true. 362 // Logs an IntEvent regardless of whether FLAG_log is true.
364 void UncheckedIntEvent(const char* name, int value); 363 void UncheckedIntEvent(const char* name, int value);
365 void UncheckedIntPtrTEvent(const char* name, intptr_t value); 364 void UncheckedIntPtrTEvent(const char* name, intptr_t value);
366 365
367 Isolate* isolate_; 366 Isolate* isolate_;
368 367
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 522
524 NameBuffer* name_buffer_; 523 NameBuffer* name_buffer_;
525 }; 524 };
526 525
527 526
528 } // namespace internal 527 } // namespace internal
529 } // namespace v8 528 } // namespace v8
530 529
531 530
532 #endif // V8_LOG_H_ 531 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698