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. */
21 #ifndef _HEAPACTIVITY_H
22 #define _HEAPACTIVITY_H
29 #include "Hist_data.h"
32 #include "DefaultMap.h"
33 #include "dbe_types.h"
44 HeapActivity (DbeView *_dbev);
52 Hist_data *compute_metrics (MetricList *, Histable::Type,
53 Hist_data::Mode, Histable*);
57 void computeCallStack (Histable::Type, VMode viewMode);
58 void createHistItemTotals (Hist_data *, MetricList *, Histable::Type, bool);
59 void computeHistTotals (Hist_data *, MetricList *);
60 void computeHistData (Hist_data *, MetricList *, Hist_data::Mode, Histable *);
62 Vector<HeapData*> *hDataObjs;
63 Vector<HeapData*> *hDataObjsCallStack;
67 // list of HeapData objects using the stack id as the key
68 DefaultMap<uint64_t, HeapData*> *hDataCalStkMap;
70 // the cached data for mode=Hist_Data::ALL
71 Hist_data *hist_data_callstack_all;
76 #endif /* _HEAPACTIVITY_H */