2693fd1543b138ac960e49d8a03afd384bc45ed1
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/timing.h   1) #ifndef UPTEV_TIMING_H
libuptev/src/timing.h   2) #define UPTEV_TIMING_H
Stefan Schuermans proc_end: add proc_cpu_time

Stefan Schuermans authored 4 years ago

liblwpttr/src/timing.h  3) 
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/timing.h   4) #include <uproctrace.pb-c.h>
Stefan Schuermans proc_end: add proc_cpu_time

Stefan Schuermans authored 4 years ago

liblwpttr/src/timing.h  5) 
Stefan Schuermans implement user/sys time + m...

Stefan Schuermans authored 4 years ago

libuptev/src/timing.h   6) #include <sys/time.h>
libuptev/src/timing.h   7) #include <time.h>
libuptev/src/timing.h   8) 
libuptev/src/timing.h   9) /**
libuptev/src/timing.h  10)  * @brief convert timeval to protobuf
libuptev/src/timing.h  11)  * @param[in] ts timeval to convert
libuptev/src/timing.h  12)  * @param[in,out] timestamp initialized structure to set to current time
libuptev/src/timing.h  13)  */
libuptev/src/timing.h  14) void uptev_timing_timeval_to_pb(struct timeval const *tv,
libuptev/src/timing.h  15)                                 struct _Uproctrace__Timespec *tsp);
libuptev/src/timing.h  16) 
libuptev/src/timing.h  17) /**
libuptev/src/timing.h  18)  * @brief convert timespec to protobuf
libuptev/src/timing.h  19)  * @param[in] ts timespec to convert
libuptev/src/timing.h  20)  * @param[in,out] timestamp initialized structure to set to current time
libuptev/src/timing.h  21)  */
libuptev/src/timing.h  22) void uptev_timing_timespec_to_pb(struct timespec const *ts,
libuptev/src/timing.h  23)                                  struct _Uproctrace__Timespec *tsp);
libuptev/src/timing.h  24) 
Stefan Schuermans proc_end: add proc_cpu_time

Stefan Schuermans authored 4 years ago

liblwpttr/src/timing.h 25) /**
liblwpttr/src/timing.h 26)  * @brief fill timestamp with current time
liblwpttr/src/timing.h 27)  * @param[in,out] timestamp initialized structure to set to current time
liblwpttr/src/timing.h 28)  */
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/timing.h  29) void uptev_timing_get_timestamp(struct _Uproctrace__Timespec *timestamp);
Stefan Schuermans proc_end: add proc_cpu_time

Stefan Schuermans authored 4 years ago

liblwpttr/src/timing.h 30) 
liblwpttr/src/timing.h 31) /**
liblwpttr/src/timing.h 32)  * @brief fill timestamp with total CPU time used by process
liblwpttr/src/timing.h 33)  * @param[in,out] timestamp initialized structure to set to proccess CPU time
liblwpttr/src/timing.h 34)  */
Stefan Schuermans formatting

Stefan Schuermans authored 4 years ago

libuptev/src/timing.h  35) void uptev_timing_get_proc_cpu_time(
libuptev/src/timing.h  36)     struct _Uproctrace__Timespec *proc_cpu_time);
Stefan Schuermans proc_end: add proc_cpu_time

Stefan Schuermans authored 4 years ago

liblwpttr/src/timing.h 37)