Chromium Code Reviews| Index: src/heap/gc-tracer.cc |
| diff --git a/src/heap/gc-tracer.cc b/src/heap/gc-tracer.cc |
| index 2d93128e5e65af4df3fced7001355923fce576d8..5cfba6f7443d2c8081997aab4fa4e23b5a45d695 100644 |
| --- a/src/heap/gc-tracer.cc |
| +++ b/src/heap/gc-tracer.cc |
| @@ -457,19 +457,19 @@ void GCTracer::PrintNVP() const { |
| "steps_count=%d " |
| "steps_took=%.1f " |
| "scavenge_throughput=%.f " |
| - "total_size_before=%" V8PRIdPTR |
| + "total_size_before=%" PRIuS |
|
ulan
2016/10/13 08:37:14
Does %zu also work? If so let's use it instead.
yangtian.zi
2016/10/13 13:54:21
The macro PRIuS stands for "zu" in POSIX systems,
|
| " " |
| - "total_size_after=%" V8PRIdPTR |
| + "total_size_after=%" PRIuS |
| " " |
| - "holes_size_before=%" V8PRIdPTR |
| + "holes_size_before=%" PRIuS |
| " " |
| - "holes_size_after=%" V8PRIdPTR |
| + "holes_size_after=%" PRIuS |
| " " |
| - "allocated=%" V8PRIdPTR |
| + "allocated=%" PRIuS |
| " " |
| - "promoted=%" V8PRIdPTR |
| + "promoted=%" PRIuS |
| " " |
| - "semi_space_copied=%" V8PRIdPTR |
| + "semi_space_copied=%" PRIuS |
| " " |
| "nodes_died_in_new=%d " |
| "nodes_copied_in_new=%d " |
| @@ -569,19 +569,19 @@ void GCTracer::PrintNVP() const { |
| "incremental_steps_count=%d " |
| "incremental_marking_throughput=%.f " |
| "incremental_walltime_duration=%.f " |
| - "total_size_before=%" V8PRIdPTR |
| + "total_size_before=%" PRIuS |
| " " |
| - "total_size_after=%" V8PRIdPTR |
| + "total_size_after=%" PRIuS |
| " " |
| - "holes_size_before=%" V8PRIdPTR |
| + "holes_size_before=%" PRIuS |
| " " |
| - "holes_size_after=%" V8PRIdPTR |
| + "holes_size_after=%" PRIuS |
| " " |
| - "allocated=%" V8PRIdPTR |
| + "allocated=%" PRIuS |
| " " |
| - "promoted=%" V8PRIdPTR |
| + "promoted=%" PRIuS |
| " " |
| - "semi_space_copied=%" V8PRIdPTR |
| + "semi_space_copied=%" PRIuS |
| " " |
| "nodes_died_in_new=%d " |
| "nodes_copied_in_new=%d " |