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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 static InspectorProfilerAgent* create(V8ProfilerAgent*, Client*); | 56 static InspectorProfilerAgent* create(V8ProfilerAgent*, Client*); |
57 ~InspectorProfilerAgent() override; | 57 ~InspectorProfilerAgent() override; |
58 DECLARE_VIRTUAL_TRACE(); | 58 DECLARE_VIRTUAL_TRACE(); |
59 | 59 |
60 // InspectorBaseAgent overrides. | 60 // InspectorBaseAgent overrides. |
61 void init(InstrumentingAgents*, protocol::Frontend*, protocol::Dispatcher*,
protocol::DictionaryValue*) override; | 61 void init(InstrumentingAgents*, protocol::Frontend*, protocol::Dispatcher*,
protocol::DictionaryValue*) override; |
62 void dispose() override; | 62 void dispose() override; |
63 void restore() override; | 63 void restore() override; |
64 | 64 |
65 void consoleProfile(ExecutionContext*, const String16& title); | |
66 void consoleProfileEnd(const String16& title); | |
67 | |
68 void enable(ErrorString*) override; | 65 void enable(ErrorString*) override; |
69 void disable(ErrorString*) override; | 66 void disable(ErrorString*) override; |
70 void setSamplingInterval(ErrorString*, int) override; | 67 void setSamplingInterval(ErrorString*, int) override; |
71 void start(ErrorString*) override; | 68 void start(ErrorString*) override; |
72 void stop(ErrorString*, OwnPtr<protocol::Profiler::CPUProfile>*) override; | 69 void stop(ErrorString*, OwnPtr<protocol::Profiler::CPUProfile>*) override; |
73 | 70 |
74 void willProcessTask(); | 71 void willProcessTask(); |
75 void didProcessTask(); | 72 void didProcessTask(); |
76 void willEnterNestedRunLoop(); | 73 void willEnterNestedRunLoop(); |
77 void didLeaveNestedRunLoop(); | 74 void didLeaveNestedRunLoop(); |
78 | 75 |
79 private: | 76 private: |
80 InspectorProfilerAgent(V8ProfilerAgent*, Client*); | 77 InspectorProfilerAgent(V8ProfilerAgent*, Client*); |
81 | 78 |
82 Client* m_client; | 79 Client* m_client; |
83 V8ProfilerAgent* m_v8ProfilerAgent; | 80 V8ProfilerAgent* m_v8ProfilerAgent; |
84 }; | 81 }; |
85 | 82 |
86 } // namespace blink | 83 } // namespace blink |
87 | 84 |
88 | 85 |
89 #endif // !defined(InspectorProfilerAgent_h) | 86 #endif // !defined(InspectorProfilerAgent_h) |
OLD | NEW |