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

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

Issue 1738073002: DevTools: introduce protocol::Value, baseline for hierarchical data in remote debugging protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 , m_v8HeapProfilerAgent(V8HeapProfilerAgent::create(isolate, runtimeAgent)) 82 , m_v8HeapProfilerAgent(V8HeapProfilerAgent::create(isolate, runtimeAgent))
83 , m_isolate(isolate) 83 , m_isolate(isolate)
84 { 84 {
85 } 85 }
86 86
87 InspectorHeapProfilerAgent::~InspectorHeapProfilerAgent() 87 InspectorHeapProfilerAgent::~InspectorHeapProfilerAgent()
88 { 88 {
89 } 89 }
90 90
91 // InspectorBaseAgent overrides. 91 // InspectorBaseAgent overrides.
92 void InspectorHeapProfilerAgent::setState(PassRefPtr<JSONObject> state) 92 void InspectorHeapProfilerAgent::setState(PassRefPtr<protocol::DictionaryValue> state)
93 { 93 {
94 InspectorBaseAgent::setState(state); 94 InspectorBaseAgent::setState(state);
95 m_v8HeapProfilerAgent->setInspectorState(m_state); 95 m_v8HeapProfilerAgent->setInspectorState(m_state);
96 } 96 }
97 97
98 void InspectorHeapProfilerAgent::setFrontend(protocol::Frontend* frontend) 98 void InspectorHeapProfilerAgent::setFrontend(protocol::Frontend* frontend)
99 { 99 {
100 InspectorBaseAgent::setFrontend(frontend); 100 InspectorBaseAgent::setFrontend(frontend);
101 m_v8HeapProfilerAgent->setFrontend(protocol::Frontend::HeapProfiler::from(fr ontend)); 101 m_v8HeapProfilerAgent->setFrontend(protocol::Frontend::HeapProfiler::from(fr ontend));
102 } 102 }
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 { 225 {
226 m_v8HeapProfilerAgent->startSampling(errorString); 226 m_v8HeapProfilerAgent->startSampling(errorString);
227 } 227 }
228 228
229 void InspectorHeapProfilerAgent::stopSampling(ErrorString* errorString, OwnPtr<p rotocol::HeapProfiler::SamplingHeapProfile>* profile) 229 void InspectorHeapProfilerAgent::stopSampling(ErrorString* errorString, OwnPtr<p rotocol::HeapProfiler::SamplingHeapProfile>* profile)
230 { 230 {
231 m_v8HeapProfilerAgent->stopSampling(errorString, profile); 231 m_v8HeapProfilerAgent->stopSampling(errorString, profile);
232 } 232 }
233 233
234 } // namespace blink 234 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698