OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "InjectedScript.h" | 35 #include "InjectedScript.h" |
36 #include "InjectedScriptManager.h" | 36 #include "InjectedScriptManager.h" |
37 #include "InspectorFrontend.h" | 37 #include "InspectorFrontend.h" |
38 #include "InspectorPageAgent.h" | 38 #include "InspectorPageAgent.h" |
39 #include "InspectorState.h" | 39 #include "InspectorState.h" |
40 #include "InspectorValues.h" | 40 #include "InspectorValues.h" |
41 #include "InstrumentingAgents.h" | 41 #include "InstrumentingAgents.h" |
42 #include "RegularExpression.h" | 42 #include "RegularExpression.h" |
43 #include "ScriptDebugServer.h" | 43 #include "ScriptDebugServer.h" |
44 #include "ScriptObject.h" | 44 #include "ScriptObject.h" |
45 #include <wtf/MemoryInstrumentationHashMap.h> | |
46 #include <wtf/MemoryInstrumentationVector.h> | |
47 #include <wtf/text/WTFString.h> | 45 #include <wtf/text/WTFString.h> |
48 | 46 |
49 using WebCore::TypeBuilder::Array; | 47 using WebCore::TypeBuilder::Array; |
50 using WebCore::TypeBuilder::Debugger::FunctionDetails; | 48 using WebCore::TypeBuilder::Debugger::FunctionDetails; |
51 using WebCore::TypeBuilder::Debugger::ScriptId; | 49 using WebCore::TypeBuilder::Debugger::ScriptId; |
52 using WebCore::TypeBuilder::Runtime::RemoteObject; | 50 using WebCore::TypeBuilder::Runtime::RemoteObject; |
53 | 51 |
54 namespace WebCore { | 52 namespace WebCore { |
55 | 53 |
56 namespace DebuggerAgentState { | 54 namespace DebuggerAgentState { |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 } | 736 } |
739 return true; | 737 return true; |
740 } | 738 } |
741 | 739 |
742 void InspectorDebuggerAgent::clearBreakDetails() | 740 void InspectorDebuggerAgent::clearBreakDetails() |
743 { | 741 { |
744 m_breakReason = InspectorFrontend::Debugger::Reason::Other; | 742 m_breakReason = InspectorFrontend::Debugger::Reason::Other; |
745 m_breakAuxData = 0; | 743 m_breakAuxData = 0; |
746 } | 744 } |
747 | 745 |
748 void InspectorDebuggerAgent::reportMemoryUsage(MemoryObjectInfo* memoryObjectInf
o) const | |
749 { | |
750 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::InspectorDe
buggerAgent); | |
751 InspectorBaseAgent<InspectorDebuggerAgent>::reportMemoryUsage(memoryObjectIn
fo); | |
752 info.addMember(m_injectedScriptManager, "injectedScriptManager"); | |
753 info.addWeakPointer(m_frontend); | |
754 info.addMember(m_pausedScriptState, "pausedScriptState"); | |
755 info.addMember(m_currentCallStack, "currentCallStack"); | |
756 info.addMember(m_scripts, "scripts"); | |
757 info.addMember(m_breakpointIdToDebugServerBreakpointIds, "breakpointIdToDebu
gServerBreakpointIds"); | |
758 info.addMember(m_continueToLocationBreakpointId, "continueToLocationBreakpoi
ntId"); | |
759 info.addMember(m_breakAuxData, "breakAuxData"); | |
760 info.addWeakPointer(m_listener); | |
761 } | |
762 | |
763 void ScriptDebugListener::Script::reportMemoryUsage(MemoryObjectInfo* memoryObje
ctInfo) const | |
764 { | |
765 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::InspectorDe
buggerAgent); | |
766 info.addMember(url, "url"); | |
767 info.addMember(source, "source"); | |
768 info.addMember(sourceMappingURL, "sourceMappingURL"); | |
769 } | |
770 | |
771 void InspectorDebuggerAgent::reset() | 746 void InspectorDebuggerAgent::reset() |
772 { | 747 { |
773 m_scripts.clear(); | 748 m_scripts.clear(); |
774 m_breakpointIdToDebugServerBreakpointIds.clear(); | 749 m_breakpointIdToDebugServerBreakpointIds.clear(); |
775 if (m_frontend) | 750 if (m_frontend) |
776 m_frontend->globalObjectCleared(); | 751 m_frontend->globalObjectCleared(); |
777 } | 752 } |
778 | 753 |
779 } // namespace WebCore | 754 } // namespace WebCore |
780 | 755 |
OLD | NEW |