HDK
|
#include <UT_PerfMonTimedEvent.h>
Protected Member Functions | |
void | subclassStart_ () override |
Perform work when the event is started. More... | |
void | subclassStop_ () override |
Perform work when the event is stopped. More... | |
void | subclassOverrideValue_ () override |
Perform work when the event's value has been overridden. More... | |
fpreal | subclassCalculateSelfValue_ () override |
void | subclassCollectDataFromChild_ (const UT_PerfMonEvent *child) override |
![]() | |
bool | isValueOverridden_ () const |
Return true if the value has been overridden. More... | |
void | getFormattedObjectPathAndExtraInfo_ (bool enclose_obj_path_in_parens, UT_String &object_path, UT_String &extra_info) const |
Pass back a formatted string of this event's object path and extra info. More... | |
Definition at line 28 of file UT_PerfMonTimedEvent.h.
UT_PerfMonTimedEvent::UT_PerfMonTimedEvent | ( | int | id, |
const UT_StringHolder & | name, | ||
const UT_StringHolder & | object, | ||
bool | auto_nest_events, | ||
UT_PerfMonCategory | category, | ||
UT_PerfMonObjectType | object_type, | ||
const UT_StringHolder & | object_icon = UT_StringHolder::theEmptyString , |
||
const UT_StringHolder & | extra_info = UT_StringHolder::theEmptyString , |
||
int | frame_num = UT_PERFORMANCE_INVALID_FRAME |
||
) |
|
override |
|
overridevirtual |
Format the event into a pretty string that can be outputted in a log.
Reimplemented from UT_PerfMonEvent.
void UT_PerfMonTimedEvent::getThreadIds | ( | UT_IntArray & | thread_ids | ) | const |
|
inlineoverridevirtual |
Return true if the event is a timed event.
Reimplemented from UT_PerfMonEvent.
Definition at line 44 of file UT_PerfMonTimedEvent.h.
Override the event's elapsed time. Handy when you know the event's elapsed time but not its start time nor stop time.
Definition at line 56 of file UT_PerfMonTimedEvent.h.
|
inline |
Return the time it took to complete the event excluding the time it took to complete any child events. Return 0 if the self time has not been calculated yet.
Definition at line 77 of file UT_PerfMonTimedEvent.h.
void UT_PerfMonTimedEvent::startTaskTimer | ( | const UT_TaskScope * | task | ) |
Start timing a threaded task.
const SYS_TimeVal* UT_PerfMonTimedEvent::startTime | ( | ) | const |
Return the start time. Return NULL if the event has not started or if its time has been overridden.
void UT_PerfMonTimedEvent::stopTaskTimer | ( | const UT_TaskScope * | task | ) |
Stop timing a threaded task. Calculate the elapsed time and store it.
const SYS_TimeVal* UT_PerfMonTimedEvent::stopTime | ( | ) | const |
Return the stop time. Return NULL if the event has not stopped or if its time has been overridden.
|
overrideprotectedvirtual |
Calculate the event's self value (time). Return the self value.
Reimplemented from UT_PerfMonEvent.
|
overrideprotectedvirtual |
Collect the data from the given child event and merge it into this event's children data.
Reimplemented from UT_PerfMonEvent.
|
overrideprotectedvirtual |
Perform work when the event's value has been overridden.
Reimplemented from UT_PerfMonEvent.
|
overrideprotectedvirtual |
Perform work when the event is started.
Reimplemented from UT_PerfMonEvent.
|
overrideprotectedvirtual |
Perform work when the event is stopped.
Reimplemented from UT_PerfMonEvent.
int UT_PerfMonTimedEvent::threadId | ( | ) | const |
Return the thread id in which the event occured.
|
inline |
Return the time it took to complete the event. Return 0 if the event has not started and stopped.
Definition at line 71 of file UT_PerfMonTimedEvent.h.
Return the total time spent in the given thread.