#include "components/performance_manager/embedder/performance_manager_lifetime.h"
#include "base/functional/bind.h"
#include "base/no_destructor.h"
#include "base/notreached.h"
#include "components/performance_manager/decorators/frame_visibility_decorator.h"
#include "components/performance_manager/decorators/page_load_tracker_decorator.h"
#include "components/performance_manager/embedder/graph_features.h"
#include "components/performance_manager/execution_context/execution_context_registry_impl.h"
#include "components/performance_manager/graph/frame_node_impl_describer.h"
#include "components/performance_manager/graph/page_node_impl_describer.h"
#include "components/performance_manager/graph/process_node_impl_describer.h"
#include "components/performance_manager/graph/worker_node_impl_describer.h"
#include "components/performance_manager/performance_manager_impl.h"
#include "components/performance_manager/public/decorators/page_live_state_decorator.h"
#include "components/performance_manager/public/graph/graph.h"
#include "components/performance_manager/v8_memory/v8_context_tracker.h"
namespace performance_manager {
namespace {
GraphCreatedCallback* GetAdditionalGraphCreatedCallback() { … }
std::optional<GraphFeatures>* GetGraphFeaturesOverride() { … }
void OnGraphCreated(const GraphFeatures& graph_features,
GraphCreatedCallback external_graph_created_callback,
GraphImpl* graph) { … }
}
PerformanceManagerLifetime::PerformanceManagerLifetime(
const GraphFeatures& graph_features,
GraphCreatedCallback graph_created_callback)
: … { … }
PerformanceManagerLifetime::~PerformanceManagerLifetime() { … }
void PerformanceManagerLifetime::SetAdditionalGraphCreatedCallbackForTesting(
GraphCreatedCallback graph_created_callback) { … }
void PerformanceManagerLifetime::SetGraphFeaturesOverrideForTesting(
const GraphFeatures& graph_features_override) { … }
void DestroyPerformanceManager(std::unique_ptr<PerformanceManager> instance) { … }
}