13 #ifndef HTGS_TASKMANAGERPROFILE_HPP 14 #define HTGS_TASKMANAGERPROFILE_HPP 48 : computeTime(computeTime), waitTime(waitTime), memoryWaitTime(memoryWaitTime), maxQueueSize(maxQueueSize) {}
60 ret +=
"computeTime: " + std::to_string((
double)
computeTime/1000000.0) +
" s\\n";
63 ret +=
"waitTime: " + std::to_string((
double)
waitTime/1000000.0) +
" s\\n";
66 ret +=
"maxQueueSize: " + std::to_string(
maxQueueSize) +
"\\n";
69 ret +=
"memoryWaitTime: " + std::to_string((
double)
memoryWaitTime/1000000.0) +
" sec\\n";
81 os <<
"computeTime: " << profile.
computeTime <<
" waitTime: " << profile.
waitTime <<
" maxQueueSize: " 160 this->
waitTime = (
unsigned long long int) (this->
waitTime / (
double) count);
172 #endif //HTGS_TASKMANAGERPROFILE_HPP #define DOTGEN_FLAG_HIDE_MEMORY_WAIT_TIME
Hides profiling data for waiting for memory.
Definition: TaskGraphDotGenFlags.hpp:74
void sum(TaskManagerProfile *other)
Computes the sum for the compute time and wait time between this profile and some other profile...
Definition: TaskManagerProfile.hpp:142
unsigned long long int waitTime
The wait time for the task manager.
Definition: TaskManagerProfile.hpp:166
unsigned long long int computeTime
The compute time for the task manager.
Definition: TaskManagerProfile.hpp:165
#define DOTGEN_COLOR_WAIT_TIME
Creates color map using wait time.
Definition: TaskGraphDotGenFlags.hpp:68
#define DOTGEN_COLOR_COMP_TIME
Creates color map using compute time.
Definition: TaskGraphDotGenFlags.hpp:56
size_t maxQueueSize
The maximum queue size for the task manager.
Definition: TaskManagerProfile.hpp:168
void setMaxQueueSize(size_t maxQueueSize)
Sets the max queue size for the profile.
Definition: TaskManagerProfile.hpp:152
size_t getMaxQueueSize() const
Gets the maximum queue size.
Definition: TaskManagerProfile.hpp:125
Implements a task manager profile that holds profiling data for a task manager.
Definition: TaskManagerProfile.hpp:27
double getValue(int colorFlag)
Gets one of the values based on the DOTGEN color flag.
Definition: TaskManagerProfile.hpp:91
unsigned long long int getWaitTime() const
Gets the wait time.
Definition: TaskManagerProfile.hpp:117
#define DOTGEN_COLOR_MEMORY_WAIT_TIME
Creates color map using memory wait time.
Definition: TaskGraphDotGenFlags.hpp:80
std::string genDot(int flags)
Generates the dot contents for the task manager profile.
Definition: TaskManagerProfile.hpp:56
unsigned long long int memoryWaitTime
The time spent waiting for memory from the memory manager.
Definition: TaskManagerProfile.hpp:167
#define DOTGEN_FLAG_HIDE_PROFILE_MAX_Q_SZ
Hides profiling data for maximum queue size.
Definition: TaskGraphDotGenFlags.hpp:44
#define DOTGEN_FLAG_HIDE_PROFILE_COMP_TIME
Hides profiling data for compute time.
Definition: TaskGraphDotGenFlags.hpp:38
#define DOTGEN_COLOR_MAX_Q_SZ
Creates color map using maximum queue size.
Definition: TaskGraphDotGenFlags.hpp:62
unsigned long long int getComputeTime() const
Gets the compute time.
Definition: TaskManagerProfile.hpp:109
void average(int count)
Computes the average compute and wait time for the profile.
Definition: TaskManagerProfile.hpp:158
unsigned long long int getMemoryWaitTime() const
Gets the memory wait time.
Definition: TaskManagerProfile.hpp:133
TaskManagerProfile()
Constructs a task manager profile with no profiling data.
Definition: TaskManagerProfile.hpp:33
Definition: Bookkeeper.hpp:23
friend std::ostream & operator<<(std::ostream &os, const TaskManagerProfile &profile)
Output stream operator to output the task manager profile to a stream.
Definition: TaskManagerProfile.hpp:80
Defines DOTGEN flags used for dot file generation.
#define DOTGEN_FLAG_HIDE_PROFILE_WAIT_TIME
Hides profiling data for wait time.
Definition: TaskGraphDotGenFlags.hpp:50
TaskManagerProfile(unsigned long long int computeTime, unsigned long long int waitTime, size_t maxQueueSize, unsigned long long int memoryWaitTime)
Constructs a task manager profile with profiling data.
Definition: TaskManagerProfile.hpp:47