Commit a2c9ec97 authored by yurys's avatar yurys Committed by Commit bot

DevTools: remove methods used for native memory instrumentation

The instrumentation was dropped and the code is unused.

BUG=None

Review URL: https://codereview.chromium.org/510703002

Cr-Commit-Position: refs/heads/master@{#292117}
parent d74287d2
...@@ -254,20 +254,6 @@ void DevToolsAgent::disableDeviceEmulation() { ...@@ -254,20 +254,6 @@ void DevToolsAgent::disableDeviceEmulation() {
impl->DisableScreenMetricsEmulation(); impl->DisableScreenMetricsEmulation();
} }
#if defined(USE_TCMALLOC) && !defined(OS_WIN)
static void AllocationVisitor(void* data, const void* ptr) {
typedef blink::WebDevToolsAgentClient::AllocatedObjectVisitor Visitor;
Visitor* visitor = reinterpret_cast<Visitor*>(data);
visitor->visitObject(ptr);
}
#endif
void DevToolsAgent::visitAllocatedObjects(AllocatedObjectVisitor* visitor) {
#if defined(USE_TCMALLOC) && !defined(OS_WIN)
IterateAllocatedObjects(&AllocationVisitor, visitor);
#endif
}
// static // static
DevToolsAgent* DevToolsAgent::FromRoutingId(int routing_id) { DevToolsAgent* DevToolsAgent::FromRoutingId(int routing_id) {
IdToAgentMap::iterator it = g_agent_for_routing_id.Get().find(routing_id); IdToAgentMap::iterator it = g_agent_for_routing_id.Get().find(routing_id);
......
...@@ -57,7 +57,6 @@ class DevToolsAgent : public RenderViewObserver, ...@@ -57,7 +57,6 @@ class DevToolsAgent : public RenderViewObserver,
createClientMessageLoop() OVERRIDE; createClientMessageLoop() OVERRIDE;
virtual void willEnterDebugLoop() OVERRIDE; virtual void willEnterDebugLoop() OVERRIDE;
virtual void didExitDebugLoop() OVERRIDE; virtual void didExitDebugLoop() OVERRIDE;
virtual void visitAllocatedObjects(AllocatedObjectVisitor* visitor) OVERRIDE;
typedef void (*TraceEventCallback)( typedef void (*TraceEventCallback)(
char phase, const unsigned char*, const char* name, unsigned long long id, char phase, const unsigned char*, const char* name, unsigned long long id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment