GCC Middle and Back End API Reference
|
Public Member Functions | |
named_items (timer *t) | |
~named_items () | |
void | push (const char *item_name) |
void | pop () |
void | print (FILE *fp, const timevar_time_def *total) |
json::value * | make_json () const |
Private Types | |
typedef hash_map< const char *, timer::timevar_def > | hash_map_t |
Private Attributes | |
timer * | m_timer |
hash_map_t | m_hash_map |
auto_vec< const char * > | m_names |
The implementation of timing events for jit client code, allowing arbitrary named items to appear on the timing stack.
timer::named_items::named_items | ( | timer * | t | ) |
The constructor for class timer::named_items.
timer::named_items::~named_items | ( | ) |
The destructor for class timer::named_items.
json::value * timer::named_items::make_json | ( | ) | const |
Create a json value representing this object, suitable for use in SARIF output.
References gcc_assert, and ggc_alloc().
Referenced by timer::make_json().
void timer::named_items::pop | ( | ) |
Pop the top item from the timer stack.
Referenced by timer::pop_client_item().
void timer::named_items::print | ( | FILE * | fp, |
const timevar_time_def * | total ) |
Print the given client item. Helper function for timer::print.
References gcc_assert, and ggc_alloc().
Referenced by timer::print().
Push the named item onto the timer stack.
References gcc_assert, and ggc_alloc().
Referenced by timer::push_client_item().
|
private |
|
private |