Lines Matching refs:profiler

26 struct profiler {  struct
54 #define PROFILERS __table ( struct profiler, "profilers" ) argument
65 extern void profile_update ( struct profiler *profiler, unsigned long sample );
66 extern unsigned long profile_mean ( struct profiler *profiler );
67 extern unsigned long profile_variance ( struct profiler *profiler );
68 extern unsigned long profile_stddev ( struct profiler *profiler );
77 profile_started ( struct profiler *profiler ) { in profile_started() argument
81 return ( profiler->started + profile_excluded ); in profile_started()
94 profile_stopped ( struct profiler *profiler ) { in profile_stopped() argument
98 return ( profiler->stopped + profile_excluded ); in profile_stopped()
111 profile_elapsed ( struct profiler *profiler ) { in profile_elapsed() argument
115 return ( profile_stopped ( profiler ) - in profile_elapsed()
116 profile_started ( profiler ) ); in profile_elapsed()
129 profile_start_at ( struct profiler *profiler, unsigned long started ) { in profile_start_at() argument
133 profiler->started = ( started - profile_excluded ); in profile_start_at()
143 profile_stop_at ( struct profiler *profiler, unsigned long stopped ) { in profile_stop_at() argument
147 profiler->stopped = ( stopped - profile_excluded ); in profile_stop_at()
148 profile_update ( profiler, profile_elapsed ( profiler ) ); in profile_stop_at()
158 profile_start ( struct profiler *profiler ) { in profile_start() argument
162 profile_start_at ( profiler, profile_timestamp() ); in profile_start()
171 profile_stop ( struct profiler *profiler ) { in profile_stop() argument
175 profile_stop_at ( profiler, profile_timestamp() ); in profile_stop()
184 profile_exclude ( struct profiler *profiler ) { in profile_exclude() argument
188 profile_excluded += profile_elapsed ( profiler ); in profile_exclude()
198 profile_custom ( struct profiler *profiler, unsigned long sample ) { in profile_custom() argument
202 profile_update ( profiler, sample ); in profile_custom()