18 #ifndef __STARPU_PROFILING_H__ 
   19 #define __STARPU_PROFILING_H__ 
   31 #define STARPU_PROFILING_DISABLE        0 
   32 #define STARPU_PROFILING_ENABLE         1 
   89 #ifdef BUILDING_STARPU 
   90 #include <common/utils.h> 
   92 extern int _starpu_profiling;
 
   93 #define starpu_profiling_status_get() ({ \ 
   95         ANNOTATE_HAPPENS_AFTER(&_starpu_profiling); \ 
   96         __ret = _starpu_profiling; \ 
   97         ANNOTATE_HAPPENS_BEFORE(&_starpu_profiling); \ 
  114 static __starpu_inline 
void starpu_timespec_clear(
struct timespec *tsp)
 
  121 static __starpu_inline 
void starpu_timespec_add(
struct timespec *a,
 
  123                                                 struct timespec *result)
 
  125         result->tv_sec = a->tv_sec + b->tv_sec;
 
  126         result->tv_nsec = a->tv_nsec + b->tv_nsec;
 
  128         if (result->tv_nsec >= 1000000000)
 
  131                 result->tv_nsec -= 1000000000;
 
  136 static __starpu_inline 
void starpu_timespec_accumulate(
struct timespec *result,
 
  139         result->tv_sec += a->tv_sec;
 
  140         result->tv_nsec += a->tv_nsec;
 
  142         if (result->tv_nsec >= 1000000000)
 
  145                 result->tv_nsec -= 1000000000;
 
  150 static __starpu_inline 
void starpu_timespec_sub(
const struct timespec *a,
 
  151                                                 const struct timespec *b,
 
  152                                                 struct timespec *result)
 
  154         result->tv_sec = a->tv_sec - b->tv_sec;
 
  155         result->tv_nsec = a->tv_nsec - b->tv_nsec;
 
  157         if ((result)->tv_nsec < 0)
 
  160                 result->tv_nsec += 1000000000;
 
  164 #define starpu_timespec_cmp(a, b, CMP)                          \ 
  165         (((a)->tv_sec == (b)->tv_sec) ? ((a)->tv_nsec CMP (b)->tv_nsec) : ((a)->tv_sec CMP (b)->tv_sec)) 
Definition: starpu_profiling.h:34
struct timespec acquire_data_start_time
Definition: starpu_profiling.h:43
struct timespec total_time
Definition: starpu_profiling.h:79
struct timespec start_time
Definition: starpu_profiling.h:46
int starpu_bus_get_src(int busid)
struct timespec start_time
Definition: starpu_profiling.h:65
void starpu_profiling_bus_helper_display_summary(void)
int starpu_bus_get_profiling_info(int busid, struct starpu_profiling_bus_info *bus_info)
int executed_tasks
Definition: starpu_profiling.h:69
struct timespec acquire_data_end_time
Definition: starpu_profiling.h:44
uint64_t used_cycles
Definition: starpu_profiling.h:58
double power_consumed
Definition: starpu_profiling.h:60
struct timespec pop_start_time
Definition: starpu_profiling.h:40
uint64_t used_cycles
Definition: starpu_profiling.h:71
uint64_t stall_cycles
Definition: starpu_profiling.h:72
int transfer_count
Definition: starpu_profiling.h:81
struct timespec push_start_time
Definition: starpu_profiling.h:38
struct timespec callback_end_time
Definition: starpu_profiling.h:53
struct timespec release_data_start_time
Definition: starpu_profiling.h:49
struct timespec sleeping_time
Definition: starpu_profiling.h:68
struct timespec total_time
Definition: starpu_profiling.h:66
struct timespec executing_time
Definition: starpu_profiling.h:67
struct timespec submit_time
Definition: starpu_profiling.h:36
double power_consumed
Definition: starpu_profiling.h:73
struct timespec start_time
Definition: starpu_profiling.h:78
void starpu_profiling_init()
int starpu_bus_get_dst(int busid)
struct timespec pop_end_time
Definition: starpu_profiling.h:41
void starpu_profiling_worker_helper_display_summary(void)
double starpu_timing_timespec_to_us(struct timespec *ts)
struct timespec callback_start_time
Definition: starpu_profiling.h:52
double starpu_timing_timespec_delay_us(struct timespec *start, struct timespec *end)
uint64_t stall_cycles
Definition: starpu_profiling.h:59
Definition: starpu_profiling.h:63
int workerid
Definition: starpu_profiling.h:56
int starpu_profiling_status_set(int status)
void starpu_profiling_set_id(int new_id)
struct timespec push_end_time
Definition: starpu_profiling.h:39
struct timespec release_data_end_time
Definition: starpu_profiling.h:50
int starpu_bus_get_count(void)
Definition: starpu_profiling.h:76
int starpu_profiling_status_get(void)
int starpu_bus_get_id(int src, int dst)
int starpu_profiling_worker_get_info(int workerid, struct starpu_profiling_worker_info *worker_info)
struct timespec end_time
Definition: starpu_profiling.h:47
int long long transferred_bytes
Definition: starpu_profiling.h:80