2#ifndef PEDIGREE_KERNEL_HOSTED_FUNCTION_PROFILE_H
3#define PEDIGREE_KERNEL_HOSTED_FUNCTION_PROFILE_H
8#if PEDIGREE_HOSTED_FUNCTION_PROFILE
9#include "pedigree/kernel/compiler.h"
11enum class HostedProfileInvalidation {
17EXPORTED_PUBLIC
bool hostedFunctionProfileInitialise()
__attribute__((no_instrument_function));
18EXPORTED_PUBLIC
size_t hostedFunctionProfileCount(
size_t count)
20EXPORTED_PUBLIC
void hostedFunctionProfileBegin(const
char* phase,
size_t repetition,
size_t count)
22EXPORTED_PUBLIC
bool hostedFunctionProfileEnd()
__attribute__((no_instrument_function));
23EXPORTED_PUBLIC
void hostedFunctionProfileInvalidate(HostedProfileInvalidation reason)
26inline void hostedFunctionProfileBegin(
const char*,
size_t,
size_t) {}
27inline bool hostedFunctionProfileEnd() {