storaged.proto 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. syntax = "proto2";
  2. option optimize_for = LITE_RUNTIME;
  3. package storaged_proto;
  4. option java_package = "com.android.storaged.proto";
  5. option java_outer_classname = "Storaged";
  6. message IOUsage {
  7. optional uint64 rd_fg_chg_on = 1;
  8. optional uint64 rd_fg_chg_off = 2;
  9. optional uint64 rd_bg_chg_on = 3;
  10. optional uint64 rd_bg_chg_off = 4;
  11. optional uint64 wr_fg_chg_on = 5;
  12. optional uint64 wr_fg_chg_off = 6;
  13. optional uint64 wr_bg_chg_on = 7;
  14. optional uint64 wr_bg_chg_off = 8;
  15. }
  16. message TaskIOUsage {
  17. optional string task_name = 1;
  18. optional IOUsage ios = 2;
  19. }
  20. message UidRecord {
  21. optional string uid_name = 1;
  22. optional uint32 user_id = 2;
  23. optional IOUsage uid_io = 3;
  24. repeated TaskIOUsage task_io = 4;
  25. }
  26. message UidIORecords {
  27. optional uint64 start_ts = 1;
  28. repeated UidRecord entries = 2;
  29. }
  30. message UidIOItem {
  31. optional uint64 end_ts = 1;
  32. optional UidIORecords records = 2;
  33. }
  34. message UidIOUsage {
  35. repeated UidIOItem uid_io_items = 2;
  36. }
  37. message IOPerfHistory {
  38. optional uint64 day_start_sec = 1;
  39. repeated uint32 recent_perf = 2;
  40. optional uint32 nr_samples = 3;
  41. repeated uint32 daily_perf = 4;
  42. optional uint32 nr_days = 5;
  43. repeated uint32 weekly_perf = 6;
  44. optional uint32 nr_weeks = 7;
  45. }
  46. message StoragedProto {
  47. optional uint32 crc = 1;
  48. optional uint32 version = 2;
  49. optional UidIOUsage uid_io_usage = 3;
  50. optional IOPerfHistory perf_history = 4;
  51. optional bytes padding = 5;
  52. }