blob: 1c8a5d9bff54fca8acbe5bd12a84a2b63a111b28 [file] [log] [blame]
Isabelle Taylord15631b2018-02-12 10:32:41 +00001// 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 Taylord404ea12018-02-19 17:28:01 +00005#ifndef SRC_PROCESS_STATS_PROCESS_INFO_H_
6#define SRC_PROCESS_STATS_PROCESS_INFO_H_
Isabelle Taylord15631b2018-02-12 10:32:41 +00007
8#include <map>
9
10struct ThreadInfo {
11 int tid;
12 char name[16];
13};
14
15struct ProcessInfo {
16 int pid;
Isabelle Taylord404ea12018-02-19 17:28:01 +000017 int ppid;
Isabelle Taylord15631b2018-02-12 10:32:41 +000018 bool in_kernel;
19 bool is_app;
Isabelle Taylord15631b2018-02-12 10:32:41 +000020 char exe[256];
Isabelle Taylord404ea12018-02-19 17:28:01 +000021 char cmdline[256];
Isabelle Taylord15631b2018-02-12 10:32:41 +000022 std::map<int, ThreadInfo> threads;
23};
24
Isabelle Taylord404ea12018-02-19 17:28:01 +000025#endif // SRC_PROCESS_STATS_PROCESS_INFO_H_