Explore Profiles is a native Grafana application designed to integrate seamlessly with Pyroscope, the open-source continuous profiling platform, providing a smooth, query-less experience for browsing and analyzing profiling data.
This PR pulls out specific Scene objects responsibilities out of the root SceneProfilesExplorer class. We do this in order to improve the cohesion of each Scene object responsible for a type of exploration. Eventually we hope the code will be easier to maintain and to reason about.
📖 Summary of the changes
There are 2 main changes:
Each Scene object responsible for an exploration type tells SceneProfilesExplorer which variables and grid controls to render
For events emitted as a result of a user click on a panel action, SceneProfilesExplorer now passes them to the Scene object constructor, which responsibility is to initialize properly the variables it uses
✨ Description
Related issue(s): is blocked by https://github.com/grafana/explore-profiles/pull/80 (should be merged after)
This PR pulls out specific Scene objects responsibilities out of the root
SceneProfilesExplorer
class. We do this in order to improve the cohesion of each Scene object responsible for a type of exploration. Eventually we hope the code will be easier to maintain and to reason about.📖 Summary of the changes
There are 2 main changes:
SceneProfilesExplorer
which variables and grid controls to renderSceneProfilesExplorer
now passes them to the Scene object constructor, which responsibility is to initialize properly the variables it usesSee diff tab for specific comments.
🧪 How to test?