CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
188 lines
4.3 KiB
C++
188 lines
4.3 KiB
C++
// Copyright (c) Advanced Micro Devices, Inc.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#include "profiler-hub/reader.hpp"
|
|
#include "profiler-hub/storage.hpp"
|
|
#include "reader_impl.hpp"
|
|
|
|
#include <memory>
|
|
#include <utility>
|
|
|
|
namespace profiler_hub
|
|
{
|
|
|
|
reader_t::reader_t(std::unique_ptr<profiler_hub::storage_t> storage)
|
|
: m_impl(std::make_unique<impl>(std::move(storage)))
|
|
{}
|
|
|
|
reader_t::~reader_t() = default;
|
|
|
|
reader_types::node_info_list_t
|
|
reader_t::get_all_nodes() const
|
|
{
|
|
return m_impl->get_all_nodes();
|
|
}
|
|
|
|
reader_types::process_info_list_t
|
|
reader_t::get_all_processes() const
|
|
{
|
|
return m_impl->get_all_processes();
|
|
}
|
|
|
|
reader_types::thread_info_list_t
|
|
reader_t::get_all_threads() const
|
|
{
|
|
return m_impl->get_all_threads();
|
|
}
|
|
|
|
reader_types::agent_info_list_t
|
|
reader_t::get_all_agents() const
|
|
{
|
|
return m_impl->get_all_agents();
|
|
}
|
|
|
|
reader_types::queue_info_list_t
|
|
reader_t::get_all_queues() const
|
|
{
|
|
return m_impl->get_all_queues();
|
|
}
|
|
|
|
reader_types::stream_info_list_t
|
|
reader_t::get_all_streams() const
|
|
{
|
|
return m_impl->get_all_streams();
|
|
}
|
|
|
|
reader_types::pmc_info_list_t
|
|
reader_t::get_all_pmc_info() const
|
|
{
|
|
return m_impl->get_all_pmc_infos();
|
|
}
|
|
|
|
reader_types::code_object_info_list_t
|
|
reader_t::get_all_code_objects() const
|
|
{
|
|
return m_impl->get_all_code_objects();
|
|
}
|
|
|
|
reader_types::kernel_symbol_info_list_t
|
|
reader_t::get_all_kernel_symbols() const
|
|
{
|
|
return m_impl->get_all_kernel_symbols();
|
|
}
|
|
|
|
reader_types::track_info_list_t
|
|
reader_t::get_all_tracks() const
|
|
{
|
|
return m_impl->get_all_tracks();
|
|
}
|
|
|
|
reader_types::timeline_event_list_t
|
|
reader_t::get_events_for_track(reader_types::track_info_ptr_t track,
|
|
const reader_types::event_filter_t& filter) const
|
|
{
|
|
return m_impl->get_events_for_track(std::move(track), filter);
|
|
}
|
|
|
|
reader_types::timeline_event_list_t
|
|
reader_t::get_events(const reader_types::event_filter_t& filter) const
|
|
{
|
|
return m_impl->get_events(filter);
|
|
}
|
|
|
|
size_t
|
|
reader_t::get_event_count(const reader_types::event_filter_t& filter) const
|
|
{
|
|
return m_impl->get_event_count(filter);
|
|
}
|
|
|
|
std::optional<reader_types::region_data_t>
|
|
reader_t::get_region_details(const reader_types::timeline_event_t& event) const
|
|
{
|
|
return m_impl->get_region_details(event);
|
|
}
|
|
|
|
std::optional<reader_types::kernel_dispatch_data_t>
|
|
reader_t::get_kernel_dispatch_details(const reader_types::timeline_event_t& event) const
|
|
{
|
|
return m_impl->get_kernel_dispatch_details(event);
|
|
}
|
|
|
|
std::optional<reader_types::memory_copy_data_t>
|
|
reader_t::get_memory_copy_details(const reader_types::timeline_event_t& event) const
|
|
{
|
|
return m_impl->get_memory_copy_details(event);
|
|
}
|
|
|
|
std::optional<reader_types::memory_alloc_data_t>
|
|
reader_t::get_memory_alloc_details(const reader_types::timeline_event_t& event) const
|
|
{
|
|
return m_impl->get_memory_alloc_details(event);
|
|
}
|
|
|
|
std::optional<reader_types::sample_data_t>
|
|
reader_t::get_sample_details(const reader_types::timeline_event_t& event) const
|
|
{
|
|
(void) event;
|
|
return std::nullopt;
|
|
}
|
|
|
|
std::optional<reader_types::pmc_event_data_t>
|
|
reader_t::get_pmc_event_details(const reader_types::timeline_event_t& event) const
|
|
{
|
|
(void) event;
|
|
return std::nullopt;
|
|
}
|
|
|
|
reader_types::call_stack_t
|
|
reader_t::get_call_stack(const reader_types::timeline_event_t& event) const
|
|
{
|
|
return m_impl->get_call_stack(event);
|
|
}
|
|
|
|
reader_types::source_context_list_t
|
|
reader_t::get_source_context(const reader_types::timeline_event_t& event) const
|
|
{
|
|
return m_impl->get_source_context(event);
|
|
}
|
|
|
|
reader_types::arg_data_list_t
|
|
reader_t::get_arguments(const reader_types::timeline_event_t& event) const
|
|
{
|
|
return m_impl->get_arguments(event);
|
|
}
|
|
|
|
reader_types::timeline_event_list_t
|
|
reader_t::get_correlated_events(const reader_types::timeline_event_t& event) const
|
|
{
|
|
return m_impl->get_correlated_events(event);
|
|
}
|
|
|
|
reader_types::event_summary_list_t
|
|
reader_t::get_kernel_summary(const reader_types::time_window_t& window) const
|
|
{
|
|
(void) window;
|
|
return {};
|
|
}
|
|
|
|
reader_types::event_summary_list_t
|
|
reader_t::get_region_summary(const reader_types::time_window_t& window) const
|
|
{
|
|
(void) window;
|
|
return {};
|
|
}
|
|
|
|
reader_types::time_window_t
|
|
reader_t::get_data_time_range() const
|
|
{
|
|
return m_impl->get_data_time_range();
|
|
}
|
|
|
|
reader_types::event_counts_t
|
|
reader_t::get_event_counts(const reader_types::time_window_t& window) const
|
|
{
|
|
return m_impl->get_event_counts(window);
|
|
}
|
|
|
|
} // namespace profiler_hub
|