mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
31 lines
1017 B
C++
31 lines
1017 B
C++
// Copyright (c) 2026 Niklas Wenzel
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_TRACING_ELECTRON_TRACING_DELEGATE_H_
|
|
#define ELECTRON_SHELL_BROWSER_TRACING_ELECTRON_TRACING_DELEGATE_H_
|
|
|
|
#include "content/public/browser/tracing_delegate.h"
|
|
#include "services/tracing/public/cpp/perfetto/metadata_data_source.h"
|
|
|
|
namespace electron {
|
|
|
|
class ElectronTracingDelegate : public content::TracingDelegate {
|
|
public:
|
|
ElectronTracingDelegate();
|
|
|
|
ElectronTracingDelegate(const ElectronTracingDelegate&) = delete;
|
|
ElectronTracingDelegate& operator=(const ElectronTracingDelegate&) = delete;
|
|
|
|
~ElectronTracingDelegate() override;
|
|
|
|
// content::TracingDelegate:
|
|
std::string RecordSerializedSystemProfileMetrics() const override;
|
|
tracing::MetadataDataSource::BundleRecorder
|
|
CreateSystemProfileMetadataRecorder() const override;
|
|
};
|
|
|
|
} // namespace electron
|
|
|
|
#endif // ELECTRON_SHELL_BROWSER_TRACING_ELECTRON_TRACING_DELEGATE_H_
|