profile.h (409B)
1 #ifndef PROFILE_H 2 #define PROFILE_H 3 4 #include <sys/types.h> 5 6 #include "vec.h" 7 8 #define MAX_SYMLEN 32 9 vec_t profile(pid_t pid); 10 11 struct profile_node { 12 char symbol[MAX_SYMLEN]; 13 unsigned int samples; 14 vec_t children; 15 }; 16 17 struct profile_node profile_res_new(); 18 void profile_proc_stack(struct profile_node* prof_res, vec_t* stack); 19 void profile_dump(struct profile_node* prof_res, int indent); 20 21 #endif