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

Unified Diff: src/inspector/V8ProfilerAgentImpl.h

Issue 2300823002: Revert of [inspector] Initial import of v8_inspector. (Closed)
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/inspector/V8InternalValueType.cpp ('k') | src/inspector/V8ProfilerAgentImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/V8ProfilerAgentImpl.h
diff --git a/src/inspector/V8ProfilerAgentImpl.h b/src/inspector/V8ProfilerAgentImpl.h
deleted file mode 100644
index fe90b49c7ab17040d35f3cbc98f87a29dd0b5d21..0000000000000000000000000000000000000000
--- a/src/inspector/V8ProfilerAgentImpl.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2015 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef V8_INSPECTOR_V8PROFILERAGENTIMPL_H_
-#define V8_INSPECTOR_V8PROFILERAGENTIMPL_H_
-
-#include "src/inspector/Allocator.h"
-#include "src/inspector/protocol/Forward.h"
-#include "src/inspector/protocol/Profiler.h"
-
-#include <vector>
-
-namespace v8 {
-class CpuProfiler;
-class Isolate;
-}
-
-namespace v8_inspector {
-
-class V8InspectorSessionImpl;
-
-using protocol::ErrorString;
-
-class V8ProfilerAgentImpl : public protocol::Profiler::Backend {
- V8_INSPECTOR_DISALLOW_COPY(V8ProfilerAgentImpl);
-public:
- V8ProfilerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, protocol::DictionaryValue* state);
- ~V8ProfilerAgentImpl() override;
-
- bool enabled() const { return m_enabled; }
- void restore();
-
- void enable(ErrorString*) override;
- void disable(ErrorString*) override;
- void setSamplingInterval(ErrorString*, int) override;
- void start(ErrorString*) override;
- void stop(ErrorString*, std::unique_ptr<protocol::Profiler::Profile>*) override;
-
- void consoleProfile(const String16& title);
- void consoleProfileEnd(const String16& title);
-
-private:
- String16 nextProfileId();
- v8::CpuProfiler* profiler();
-
- void startProfiling(const String16& title);
- std::unique_ptr<protocol::Profiler::Profile> stopProfiling(const String16& title, bool serialize);
-
- bool isRecording() const;
-
- V8InspectorSessionImpl* m_session;
- v8::Isolate* m_isolate;
- v8::CpuProfiler* m_profiler;
- protocol::DictionaryValue* m_state;
- protocol::Profiler::Frontend m_frontend;
- bool m_enabled;
- bool m_recordingCPUProfile;
- class ProfileDescriptor;
- std::vector<ProfileDescriptor> m_startedProfiles;
- String16 m_frontendInitiatedProfileId;
-};
-
-} // namespace v8_inspector
-
-#endif // V8_INSPECTOR_V8PROFILERAGENTIMPL_H_
« no previous file with comments | « src/inspector/V8InternalValueType.cpp ('k') | src/inspector/V8ProfilerAgentImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698