| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 class InspectorOverlay; | 47 class InspectorOverlay; |
| 48 | 48 |
| 49 | 49 |
| 50 typedef String ErrorString; | 50 typedef String ErrorString; |
| 51 | 51 |
| 52 class CORE_EXPORT InspectorProfilerAgent final : public InspectorBaseAgent<Inspe
ctorProfilerAgent, InspectorFrontend::Profiler>, public InspectorBackendDispatch
er::ProfilerCommandHandler { | 52 class CORE_EXPORT InspectorProfilerAgent final : public InspectorBaseAgent<Inspe
ctorProfilerAgent, InspectorFrontend::Profiler>, public InspectorBackendDispatch
er::ProfilerCommandHandler { |
| 53 WTF_MAKE_NONCOPYABLE(InspectorProfilerAgent); | 53 WTF_MAKE_NONCOPYABLE(InspectorProfilerAgent); |
| 54 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InspectorProfilerAgent); | 54 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InspectorProfilerAgent); |
| 55 public: | 55 public: |
| 56 static PassOwnPtrWillBeRawPtr<InspectorProfilerAgent> create(InjectedScriptM
anager*, InspectorOverlay*); | 56 static PassOwnPtrWillBeRawPtr<InspectorProfilerAgent> create(InjectedScriptM
anager*, InspectorOverlay*); |
| 57 virtual ~InspectorProfilerAgent(); | 57 ~InspectorProfilerAgent() override; |
| 58 DECLARE_VIRTUAL_TRACE(); | 58 DECLARE_VIRTUAL_TRACE(); |
| 59 | 59 |
| 60 void consoleProfile(ExecutionContext*, const String& title); | 60 void consoleProfile(ExecutionContext*, const String& title); |
| 61 void consoleProfileEnd(const String& title); | 61 void consoleProfileEnd(const String& title); |
| 62 | 62 |
| 63 void enable(ErrorString*) override; | 63 void enable(ErrorString*) override; |
| 64 void setSamplingInterval(ErrorString*, int) override; | 64 void setSamplingInterval(ErrorString*, int) override; |
| 65 void start(ErrorString*) override; | 65 void start(ErrorString*) override; |
| 66 void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::CPUProfile>&) override
; | 66 void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::CPUProfile>&) override
; |
| 67 | 67 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 92 RawPtrWillBeMember<InspectorOverlay> m_overlay; | 92 RawPtrWillBeMember<InspectorOverlay> m_overlay; |
| 93 | 93 |
| 94 void idleStarted(); | 94 void idleStarted(); |
| 95 void idleFinished(); | 95 void idleFinished(); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace blink | 98 } // namespace blink |
| 99 | 99 |
| 100 | 100 |
| 101 #endif // !defined(InspectorProfilerAgent_h) | 101 #endif // !defined(InspectorProfilerAgent_h) |
| OLD | NEW |