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

Side by Side Diff: Source/core/inspector/InspectorMemoryAgent.h

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 WTF_MAKE_NONCOPYABLE(InspectorMemoryAgent); 51 WTF_MAKE_NONCOPYABLE(InspectorMemoryAgent);
52 public: 52 public:
53 typedef Vector<OwnPtr<InspectorBaseAgentInterface> > InspectorAgents; 53 typedef Vector<OwnPtr<InspectorBaseAgentInterface> > InspectorAgents;
54 54
55 static PassOwnPtr<InspectorMemoryAgent> create(InstrumentingAgents* instrume ntingAgents, InspectorClient* client, InspectorCompositeState* state, Page* page ) 55 static PassOwnPtr<InspectorMemoryAgent> create(InstrumentingAgents* instrume ntingAgents, InspectorClient* client, InspectorCompositeState* state, Page* page )
56 { 56 {
57 return adoptPtr(new InspectorMemoryAgent(instrumentingAgents, client, st ate, page)); 57 return adoptPtr(new InspectorMemoryAgent(instrumentingAgents, client, st ate, page));
58 } 58 }
59 virtual ~InspectorMemoryAgent(); 59 virtual ~InspectorMemoryAgent();
60 60
61 virtual void getProcessMemoryDistribution(ErrorString*, const bool* in_repor tGraph, RefPtr<TypeBuilder::Memory::MemoryBlock>& out_distribution, RefPtr<Inspe ctorObject>& opt_out_graphMetaInformation) {}
62
63
61 virtual void getDOMCounters(ErrorString*, int* documents, int* nodes, int* j sEventListeners); 64 virtual void getDOMCounters(ErrorString*, int* documents, int* nodes, int* j sEventListeners);
62 virtual void getProcessMemoryDistribution(ErrorString*, const bool* reportGr aph, RefPtr<TypeBuilder::Memory::MemoryBlock>& out_processMemory, RefPtr<Inspect orObject>& graphMetaInformation);
63
64 virtual void reportMemoryUsage(MemoryObjectInfo*) const;
65
66 void getProcessMemoryDistributionMap(HashMap<String, size_t>* memoryInfo);
67 65
68 virtual void setFrontend(InspectorFrontend*); 66 virtual void setFrontend(InspectorFrontend*);
69 virtual void clearFrontend(); 67 virtual void clearFrontend();
70 68
71 private: 69 private:
72 InspectorMemoryAgent(InstrumentingAgents*, InspectorClient*, InspectorCompos iteState*, Page*); 70 InspectorMemoryAgent(InstrumentingAgents*, InspectorClient*, InspectorCompos iteState*, Page*);
73 71
74 PassRefPtr<InspectorObject> getProcessMemoryDistributionImpl(bool reportGrap h, HashMap<String, size_t>* memoryInfo);
75
76 InspectorClient* m_inspectorClient; 72 InspectorClient* m_inspectorClient;
77 Page* m_page; 73 Page* m_page;
78 InspectorFrontend::Memory* m_frontend; 74 InspectorFrontend::Memory* m_frontend;
79 }; 75 };
80 76
81 } // namespace WebCore 77 } // namespace WebCore
82 78
83 #endif // !defined(InspectorMemoryAgent_h) 79 #endif // !defined(InspectorMemoryAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorHeapProfilerAgent.cpp ('k') | Source/core/inspector/InspectorMemoryAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698