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