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

Side by Side Diff: Source/core/inspector/InspectorHeapProfilerAgent.cpp

Issue 884753003: Fix template angle bracket syntax in inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Some more fixes Created 5 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
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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 return; 163 return;
164 HeapStatsStream stream(this); 164 HeapStatsStream stream(this);
165 SnapshotObjectId lastSeenObjectId = ScriptProfiler::requestHeapStatsUpdate(& stream); 165 SnapshotObjectId lastSeenObjectId = ScriptProfiler::requestHeapStatsUpdate(& stream);
166 m_frontend->lastSeenObjectId(lastSeenObjectId, WTF::currentTimeMS()); 166 m_frontend->lastSeenObjectId(lastSeenObjectId, WTF::currentTimeMS());
167 } 167 }
168 168
169 void InspectorHeapProfilerAgent::pushHeapStatsUpdate(const uint32_t* const data, const int size) 169 void InspectorHeapProfilerAgent::pushHeapStatsUpdate(const uint32_t* const data, const int size)
170 { 170 {
171 if (!m_frontend) 171 if (!m_frontend)
172 return; 172 return;
173 RefPtr<TypeBuilder::Array<int> > statsDiff = TypeBuilder::Array<int>::create (); 173 RefPtr<TypeBuilder::Array<int>> statsDiff = TypeBuilder::Array<int>::create( );
174 for (int i = 0; i < size; ++i) 174 for (int i = 0; i < size; ++i)
175 statsDiff->addItem(data[i]); 175 statsDiff->addItem(data[i]);
176 m_frontend->heapStatsUpdate(statsDiff.release()); 176 m_frontend->heapStatsUpdate(statsDiff.release());
177 } 177 }
178 178
179 void InspectorHeapProfilerAgent::stopTrackingHeapObjects(ErrorString* error, con st bool* reportProgress) 179 void InspectorHeapProfilerAgent::stopTrackingHeapObjects(ErrorString* error, con st bool* reportProgress)
180 { 180 {
181 if (!m_heapStatsUpdateTask) { 181 if (!m_heapStatsUpdateTask) {
182 *error = "Heap object tracking is not started."; 182 *error = "Heap object tracking is not started.";
183 return; 183 return;
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 321
322 void InspectorHeapProfilerAgent::trace(Visitor* visitor) 322 void InspectorHeapProfilerAgent::trace(Visitor* visitor)
323 { 323 {
324 visitor->trace(m_injectedScriptManager); 324 visitor->trace(m_injectedScriptManager);
325 visitor->trace(m_heapStatsUpdateTask); 325 visitor->trace(m_heapStatsUpdateTask);
326 InspectorBaseAgent::trace(visitor); 326 InspectorBaseAgent::trace(visitor);
327 } 327 }
328 328
329 } // namespace blink 329 } // namespace blink
330 330
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDebuggerAgent.cpp ('k') | Source/core/inspector/InspectorHistory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698