35ab6b0110
* Continuous integration * linux-ci on * fix for parallel-overhead * Updated CMAKE_INSTALL_PREFIX * Updated installed boost libraries * Dyninst updates fixing TBB install * timemory + dyninst submodule updates - fixes some timemory package option handling - fixes dyninst libiberty handling * Update dyninst submodule with libiberty fix * dyninst submodule update with TBB internal build fixes * Updated linux-ci + tests + timemeory + dyninst - updated timemory submodule - update dyninst submodule - delay OnLoad implementation - DYNINST_RT_API handling improvement - CI for ubuntu-bionic in addition to focal - CTest in CI * Update TBB handling in CI * Update dyninst with symLite fix * Update dyninst submodule with ElfUtils-External fix * Dyninst::ElfUtils fix * Modified dyninst submodule TPL install * Update dyninst submodule with improved interface libraries * Fix to Dyninst::ElfUtils in dyninst submodule * Updated CI build matrix + test install * Updated CI * CI stage updates * Tweak * Dyninst updates + RPATH for hosttrace exe - hosttrace will rpath to dyninst - Dyninst will statically link to boost by default - Fixes to double init w/ MPI + runtime instrumentation - minor cleanup to hosttrace - hosttrace help exits with zero - CI updates * Dyninst + CI updates * Removed ELFUTILS_BUILD_STATIC option in Dyninst * Dyninst + visibility + roctracer + tests - Dyninst submodule updates with dynamic pcontrol lib - hosttrace visibility is hidden - improved handling of DYNINST_API_RT in hosttrace - roctracer::tear_down in finalize fixes issues with timemory - throw error if cannot create perfetto output file - roctracer_default_pool() safety guards - resume calling roctracer_close_pool() - fixed working dir of tests - fixed env of tests (cmake and CI) - simplified CI * Removed stray CI if condition * Disable hidden visibility for now * ifdef for roctracer::tear_down + reenable hidden * Better CI environment handling + dyninst packaging * Fix for dyninst-package CI * Fixes for cmake 3.15 issues with aliasing imported lib * Fix to ubuntu-focal-dyninst-package * Dyninst updates for packaging - fixes issues with hard-coded paths to libraries after relocation via package installer * Restrict CI to main and develop branches
66 行
1.9 KiB
C++
66 行
1.9 KiB
C++
|
|
#pragma once
|
|
|
|
#include "timemory/api.hpp"
|
|
#include "timemory/components/base.hpp"
|
|
#include "timemory/components/data_tracker/components.hpp"
|
|
#include "timemory/components/macros.hpp"
|
|
#include "timemory/enum.h"
|
|
#include "timemory/macros/os.hpp"
|
|
#include "timemory/mpl/type_traits.hpp"
|
|
#include "timemory/mpl/types.hpp"
|
|
|
|
TIMEMORY_DECLARE_COMPONENT(roctracer)
|
|
|
|
#if !defined(HOSTTRACE_USE_ROCTRACER)
|
|
TIMEMORY_DEFINE_CONCRETE_TRAIT(is_available, component::roctracer, false_type)
|
|
#endif
|
|
|
|
namespace tim
|
|
{
|
|
namespace component
|
|
{
|
|
using roctracer_data = data_tracker<double, roctracer>;
|
|
|
|
struct roctracer
|
|
: base<roctracer, void>
|
|
, private policy::instance_tracker<roctracer, false>
|
|
{
|
|
using value_type = void;
|
|
using base_type = base<roctracer, void>;
|
|
using tracker_type = policy::instance_tracker<roctracer, false>;
|
|
|
|
TIMEMORY_DEFAULT_OBJECT(roctracer)
|
|
|
|
static void preinit();
|
|
static void global_init() { setup(); }
|
|
static void global_finalize() { tear_down(); }
|
|
|
|
static bool is_setup();
|
|
static void setup();
|
|
static void tear_down();
|
|
static void add_setup(const std::string&, std::function<void()>&&);
|
|
static void add_tear_down(const std::string&, std::function<void()>&&);
|
|
static void remove_setup(const std::string&);
|
|
static void remove_tear_down(const std::string&);
|
|
|
|
void start();
|
|
void stop();
|
|
void set_prefix(const char* _v) { m_prefix = _v; }
|
|
|
|
private:
|
|
const char* m_prefix = nullptr;
|
|
};
|
|
} // namespace component
|
|
} // namespace tim
|
|
|
|
TIMEMORY_SET_COMPONENT_API(component::roctracer_data, project::timemory, category::timing,
|
|
os::supports_unix)
|
|
TIMEMORY_DEFINE_CONCRETE_TRAIT(is_timing_category, component::roctracer_data, true_type)
|
|
TIMEMORY_DEFINE_CONCRETE_TRAIT(uses_timing_units, component::roctracer_data, true_type)
|
|
|
|
#include "timemory/operations.hpp"
|
|
|
|
TIMEMORY_DECLARE_EXTERN_COMPONENT(roctracer, false, void)
|
|
TIMEMORY_DECLARE_EXTERN_COMPONENT(roctracer_data, true, double)
|