| 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 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 void enable(ErrorString*) override; | 62 void enable(ErrorString*) override; |
| 63 void setSamplingInterval(ErrorString*, int) override; | 63 void setSamplingInterval(ErrorString*, int) override; |
| 64 void start(ErrorString*) override; | 64 void start(ErrorString*) override; |
| 65 void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::CPUProfile>&) override
; | 65 void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::CPUProfile>&) override
; |
| 66 | 66 |
| 67 void disable(ErrorString*) override; | 67 void disable(ErrorString*) override; |
| 68 void restore() override; | 68 void restore() override; |
| 69 | 69 |
| 70 void willProcessTask(); | 70 void willProcessTask(); |
| 71 void didProcessTask(); | 71 void didProcessTask(); |
| 72 void willEnterNestedRunLoop(); | |
| 73 void didLeaveNestedRunLoop(); | |
| 74 | 72 |
| 75 private: | 73 private: |
| 76 InspectorProfilerAgent(InjectedScriptManager*, InspectorOverlay*); | 74 InspectorProfilerAgent(InjectedScriptManager*, InspectorOverlay*); |
| 77 bool enabled(); | 75 bool enabled(); |
| 78 void doEnable(); | 76 void doEnable(); |
| 79 void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::CPUProfile>*); | 77 void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::CPUProfile>*); |
| 80 String nextProfileId(); | 78 String nextProfileId(); |
| 81 | 79 |
| 82 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; | 80 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; |
| 83 bool m_recordingCPUProfile; | 81 bool m_recordingCPUProfile; |
| 84 class ProfileDescriptor; | 82 class ProfileDescriptor; |
| 85 Vector<ProfileDescriptor> m_startedProfiles; | 83 Vector<ProfileDescriptor> m_startedProfiles; |
| 86 String m_frontendInitiatedProfileId; | 84 String m_frontendInitiatedProfileId; |
| 87 | 85 |
| 88 typedef HashMap<String, double> ProfileNameIdleTimeMap; | 86 typedef HashMap<String, double> ProfileNameIdleTimeMap; |
| 89 ProfileNameIdleTimeMap* m_profileNameIdleTimeMap; | 87 ProfileNameIdleTimeMap* m_profileNameIdleTimeMap; |
| 90 double m_idleStartTime; | 88 double m_idleStartTime; |
| 91 RawPtrWillBeMember<InspectorOverlay> m_overlay; | 89 RawPtrWillBeMember<InspectorOverlay> m_overlay; |
| 92 | 90 |
| 93 void idleStarted(); | 91 void idleStarted(); |
| 94 void idleFinished(); | 92 void idleFinished(); |
| 95 }; | 93 }; |
| 96 | 94 |
| 97 } // namespace blink | 95 } // namespace blink |
| 98 | 96 |
| 99 | 97 |
| 100 #endif // !defined(InspectorProfilerAgent_h) | 98 #endif // !defined(InspectorProfilerAgent_h) |
| OLD | NEW |