36 #ifndef __NV_PROFILER_H__
37 #define __NV_PROFILER_H__
76 struct timeval total_time;
105 void start(uint32_t sampling_interval_ms);
136 static void * ProfilerThread(
void *);
139 uint32_t sampling_interval;
142 pthread_mutex_t thread_lock;
144 pthread_t profiling_thread;
147 uint32_t num_cpu_cores;
149 bool check_cpu_usage;
154 struct ProfilerDataInternal
157 struct timeval start_time;
159 struct timeval stop_time;
163 struct timespec start_proc_cpu_clock_time;
165 struct timespec start_cpu_clock_time;
169 struct timespec stop_proc_cpu_clock_time;
171 struct timespec stop_cpu_clock_time;
181 uint64_t num_readings;