profile.h 742 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef AVM_PROFILE_H
  2. #define AVM_PROFILE_H 1
  3. #include <avm/common.h>
  4. #include <avm/lists.h>
  5. #ifdef __cplusplus
  6. extern "C"
  7. {
  8. #endif
  9. /* Anyone who can figure out how to change the unsigned long fields
  10. to counter types without causing profile information to be
  11. incorrectly recorded or reported should do it. */
  12. struct score_node
  13. {
  14. list team;
  15. unsigned long calls;
  16. unsigned long reductions;
  17. struct score_node *league;
  18. };
  19. typedef struct score_node *score;
  20. extern score avm_entries (list team, list * message, int *fault);
  21. extern void avm_tally (char *filename);
  22. extern void avm_initialize_profile ();
  23. extern void avm_count_profile ();
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif /* !AVM_PROFILE_H */