stats.h 931 B

1234567891011121314151617181920212223242526
  1. struct Cfsmsg {
  2. ulong n; /* number of messages (of some type) */
  3. vlong t; /* time spent in these messages */
  4. vlong s; /* start time of last call */
  5. };
  6. struct Cfsstat {
  7. struct Cfsmsg cm[128]; /* client messages */
  8. struct Cfsmsg sm[128]; /* server messages */
  9. ulong ndirread; /* # of directory read ops */
  10. ulong ndelegateread; /* # of read ops delegated */
  11. ulong ninsert; /* # of cache insert ops */
  12. ulong ndelete; /* # of cache delete ops */
  13. ulong nupdate; /* # of cache update ops */
  14. uvlong bytesread; /* # of bytes read by client */
  15. uvlong byteswritten; /* # of bytes written by client */
  16. uvlong bytesfromserver; /* # of bytes read from server */
  17. uvlong bytesfromdirs; /* # of directory bytes read from server */
  18. uvlong bytesfromcache; /* # of bytes read from cache */
  19. uvlong bytestocache; /* # of bytes written to cache */
  20. };
  21. extern struct Cfsstat cfsstat, cfsprev;
  22. extern int statson;