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

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

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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 typedef String ErrorString; 50 typedef String ErrorString;
51 51
52 class CORE_EXPORT InspectorHeapProfilerAgent final : public InspectorBaseAgent<I nspectorHeapProfilerAgent, protocol::Frontend::HeapProfiler>, public protocol::D ispatcher::HeapProfilerCommandHandler { 52 class CORE_EXPORT InspectorHeapProfilerAgent final : public InspectorBaseAgent<I nspectorHeapProfilerAgent, protocol::Frontend::HeapProfiler>, public protocol::D ispatcher::HeapProfilerCommandHandler {
53 WTF_MAKE_NONCOPYABLE(InspectorHeapProfilerAgent); 53 WTF_MAKE_NONCOPYABLE(InspectorHeapProfilerAgent);
54 USING_FAST_MALLOC_WILL_BE_REMOVED(InspectorHeapProfilerAgent); 54 USING_FAST_MALLOC_WILL_BE_REMOVED(InspectorHeapProfilerAgent);
55 public: 55 public:
56 static PassOwnPtrWillBeRawPtr<InspectorHeapProfilerAgent> create(v8::Isolate *, V8RuntimeAgent*); 56 static PassOwnPtrWillBeRawPtr<InspectorHeapProfilerAgent> create(v8::Isolate *, V8RuntimeAgent*);
57 ~InspectorHeapProfilerAgent() override; 57 ~InspectorHeapProfilerAgent() override;
58 58
59 // InspectorBaseAgent overrides. 59 // InspectorBaseAgent overrides.
60 void setState(PassRefPtr<JSONObject>) override; 60 void setState(PassRefPtr<protocol::DictionaryValue>) override;
61 void setFrontend(protocol::Frontend*) override; 61 void setFrontend(protocol::Frontend*) override;
62 void clearFrontend() override; 62 void clearFrontend() override;
63 void restore() override; 63 void restore() override;
64 64
65 void enable(ErrorString*) override; 65 void enable(ErrorString*) override;
66 void disable(ErrorString*) override; 66 void disable(ErrorString*) override;
67 void startTrackingHeapObjects(ErrorString*, const Maybe<bool>& trackAllocati ons) override; 67 void startTrackingHeapObjects(ErrorString*, const Maybe<bool>& trackAllocati ons) override;
68 void stopTrackingHeapObjects(ErrorString*, const Maybe<bool>& reportProgress ) override; 68 void stopTrackingHeapObjects(ErrorString*, const Maybe<bool>& reportProgress ) override;
69 void takeHeapSnapshot(ErrorString*, const Maybe<bool>& reportProgress) overr ide; 69 void takeHeapSnapshot(ErrorString*, const Maybe<bool>& reportProgress) overr ide;
70 void collectGarbage(ErrorString*) override; 70 void collectGarbage(ErrorString*) override;
(...skipping 13 matching lines...) Expand all
84 bool isInspectableHeapObject(unsigned id); 84 bool isInspectableHeapObject(unsigned id);
85 85
86 OwnPtr<V8HeapProfilerAgent> m_v8HeapProfilerAgent; 86 OwnPtr<V8HeapProfilerAgent> m_v8HeapProfilerAgent;
87 OwnPtr<HeapStatsUpdateTask> m_heapStatsUpdateTask; 87 OwnPtr<HeapStatsUpdateTask> m_heapStatsUpdateTask;
88 v8::Isolate* m_isolate; 88 v8::Isolate* m_isolate;
89 }; 89 };
90 90
91 } // namespace blink 91 } // namespace blink
92 92
93 #endif // !defined(InspectorHeapProfilerAgent_h) 93 #endif // !defined(InspectorHeapProfilerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698