]>
git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gprofng/src/Sample.h
1 /* Copyright (C) 2021 Free Software Foundation, Inc.
4 This file is part of GNU Binutils.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, 51 Franklin Street - Fifth Floor, Boston,
19 MA 02110-1301, USA. */
24 // A data Sample object represents a single sample's worth of data. This
25 // object is private and is only used by Experiment and Sample_sel.
27 #include "dbe_types.h"
33 friend class Experiment
; // see post_process(), read_overview_file()
37 PrUsage
*get_usage ();
70 void validate_usage (); // Make sure usage data is consistent
71 bool validated
; // if validation performed
72 char *start_label
; // sample start label
73 char *end_label
; // sample end label
74 hrtime_t start_time
; // sample start time
75 hrtime_t end_time
; // sample end time
76 PrUsage
*prusage
; // process usage data
77 int number
; // sample number
80 #endif /* _SAMPLE_H */