Isabelle Taylor | d15631b | 2018-02-12 10:32:41 +0000 | [diff] [blame] | 1 | // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Isabelle Taylor | d404ea1 | 2018-02-19 17:28:01 +0000 | [diff] [blame] | 5 | #ifndef SRC_PROCESS_STATS_PROCESS_INFO_H_ |
| 6 | #define SRC_PROCESS_STATS_PROCESS_INFO_H_ |
Isabelle Taylor | d15631b | 2018-02-12 10:32:41 +0000 | [diff] [blame] | 7 | |
| 8 | #include <map> |
| 9 | |
| 10 | struct ThreadInfo { |
| 11 | int tid; |
| 12 | char name[16]; |
| 13 | }; |
| 14 | |
| 15 | struct ProcessInfo { |
| 16 | int pid; |
Isabelle Taylor | d404ea1 | 2018-02-19 17:28:01 +0000 | [diff] [blame] | 17 | int ppid; |
Isabelle Taylor | d15631b | 2018-02-12 10:32:41 +0000 | [diff] [blame] | 18 | bool in_kernel; |
| 19 | bool is_app; |
Isabelle Taylor | d15631b | 2018-02-12 10:32:41 +0000 | [diff] [blame] | 20 | char exe[256]; |
Isabelle Taylor | d404ea1 | 2018-02-19 17:28:01 +0000 | [diff] [blame] | 21 | char cmdline[256]; |
Isabelle Taylor | d15631b | 2018-02-12 10:32:41 +0000 | [diff] [blame] | 22 | std::map<int, ThreadInfo> threads; |
| 23 | }; |
| 24 | |
Isabelle Taylor | d404ea1 | 2018-02-19 17:28:01 +0000 | [diff] [blame] | 25 | #endif // SRC_PROCESS_STATS_PROCESS_INFO_H_ |