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

Side by Side Diff: Source/platform/heap/ThreadState.cpp

Issue 514093002: Oilpan: Compile error with GYP_DEFINES='gc_profile_heap=1' (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 SnapshotInfo info(this); 615 SnapshotInfo info(this);
616 RefPtr<TracedValue> json = TracedValue::create(); 616 RefPtr<TracedValue> json = TracedValue::create();
617 617
618 #define SNAPSHOT_HEAP(HeapType) \ 618 #define SNAPSHOT_HEAP(HeapType) \
619 { \ 619 { \
620 json->beginDictionary(); \ 620 json->beginDictionary(); \
621 json->setString("name", #HeapType); \ 621 json->setString("name", #HeapType); \
622 m_heaps[HeapType##Heap]->snapshot(json.get(), &info); \ 622 m_heaps[HeapType##Heap]->snapshot(json.get(), &info); \
623 json->endDictionary(); \ 623 json->endDictionary(); \
624 json->beginDictionary(); \ 624 json->beginDictionary(); \
625 json->setString("name", #HeapType##NonFinalized); \ 625 json->setString("name", #HeapType"NonFinalized"); \
626 m_heaps[HeapType##HeapNonFinalized]->snapshot(json.get(), &info); \ 626 m_heaps[HeapType##HeapNonFinalized]->snapshot(json.get(), &info); \
627 json->endDictionary(); \ 627 json->endDictionary(); \
628 } 628 }
629 json->beginArray("heaps"); 629 json->beginArray("heaps");
630 SNAPSHOT_HEAP(General); 630 SNAPSHOT_HEAP(General);
631 FOR_EACH_TYPED_HEAP(SNAPSHOT_HEAP); 631 FOR_EACH_TYPED_HEAP(SNAPSHOT_HEAP);
632 json->endArray(); 632 json->endArray();
633 #undef SNAPSHOT_HEAP 633 #undef SNAPSHOT_HEAP
634 634
635 json->setInteger("allocatedSpace", m_stats.totalAllocatedSpace()); 635 json->setInteger("allocatedSpace", m_stats.totalAllocatedSpace());
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 return gcInfo; 1193 return gcInfo;
1194 } 1194 }
1195 } 1195 }
1196 if (needLockForIteration) 1196 if (needLockForIteration)
1197 threadAttachMutex().unlock(); 1197 threadAttachMutex().unlock();
1198 return 0; 1198 return 0;
1199 } 1199 }
1200 #endif 1200 #endif
1201 1201
1202 } 1202 }
OLDNEW
« 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