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

Unified Diff: runtime/vm/heap_profiler.cc

Issue 11823002: Use a named constant for the object id size when writing out the header. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap_profiler.cc
diff --git a/runtime/vm/heap_profiler.cc b/runtime/vm/heap_profiler.cc
index 1d34b2d31276b2fdb65d226f4a0b7dce1c09859b..1c69562e5543a86beb3642887368e0b96746eeb3 100644
--- a/runtime/vm/heap_profiler.cc
+++ b/runtime/vm/heap_profiler.cc
@@ -305,7 +305,7 @@ void HeapProfiler::Write(const void* data, intptr_t size) {
void HeapProfiler::WriteHeader() {
const char magic[] = "JAVA PROFILE 1.0.1";
Write(magic, sizeof(magic));
- uint32_t size = htonl(8);
+ uint32_t size = htonl(kObjectIdSize);
Write(&size, sizeof(size));
uint64_t milliseconds = OS::GetCurrentTimeMillis();
uint32_t hi = htonl((uint32_t)((milliseconds >> 32) & 0x00000000FFFFFFFF));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698