Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorProfilerAgent.h

Issue 1859293002: [DevTools] Move Console to v8_inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added missing tests Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
56 static RawPtr<InspectorProfilerAgent> create(V8ProfilerAgent*, Client*); 56 static RawPtr<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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698