File: stability_report.proto

package info (click to toggle)
chromium 139.0.7258.127-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,122,156 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (94 lines) | stat: -rw-r--r-- 3,013 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This proto is parsed by the crash server using code at
// http://shortn/_Xt58wqlKTk (Google-internal link). All changes must be
// reflected in the server-side copy there.

syntax = "proto2";

option optimize_for = LITE_RUNTIME;

package stability_report;

// The state of a process.
// Next id: 8
message ProcessState {
  // Fields that were removed in https://crrev.com/c/4265975.
  reserved 1, 2, 5, 6;

  // The identifier of the process.
  optional int64 process_id = 3;

  // Records the state of process memory at the time of crash.
  // Next id: 6
  message MemoryState {
    message WindowsMemory {
      // Fields that were removed.
      reserved 5;
      // The private byte usage of the process. Unit is 4K pages.
      optional uint32 process_private_usage = 1;
      // The peak working set usage of the process. Unit is 4K pages.
      optional uint32 process_peak_workingset_size = 2;
      // The peak pagefile usage of the process. Unit is 4K pages.
      optional uint32 process_peak_pagefile_usage = 3;
      // The allocation request that caused OOM, bytes.
      optional uint32 process_allocation_attempt = 4;
    }

    optional WindowsMemory windows_memory = 1;
  }

  optional MemoryState memory_state = 4;

  // Records the state of the file system at the time of crash.
  // Next id: 3
  message FileSystemState {
    message PosixFileSystemState {
      // The number of open file descriptors in the crashing process.
      optional uint32 open_file_descriptors = 1;
    }

    optional PosixFileSystemState posix_file_system_state = 1;

    message WindowsFileSystemState {
      // The number of open handles in the process.
      optional uint32 process_handle_count = 1;
    }

    optional WindowsFileSystemState windows_file_system_state = 2;
  }

  optional FileSystemState file_system_state = 7;
}

// Records the state of system memory at the time of crash.
// Next id: 2
message SystemMemoryState {
  message WindowsMemory {
    // The system commit limit. Unit is number of 4K pages.
    optional uint32 system_commit_limit = 1;
    // The amount of system commit remaining. Unit is number of 4K pages.
    optional uint32 system_commit_remaining = 2;
    // The current number of open handles.
    optional uint32 system_handle_count = 3;
  }

  optional WindowsMemory windows_memory = 1;
}

// A stability report contains information pertaining to the execution of a
// single logical instance of a "chrome browser". It is comprised of information
// about the system state and about the chrome browser's processes.
// Next id: 9
message StabilityReport {
  // Fields that were removed in https://crrev.com/c/4265975.
  reserved 1, 3 to 6, 8;

  // State pertaining to Chrome's processes.
  repeated ProcessState process_states = 2;

  // System-wide resource usage.
  optional SystemMemoryState system_memory_state = 7;
}