• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

kcachegrind

  • sources
  • kde-4.12
  • kdesdk
  • kcachegrind
  • libviews
coverageitem.h
Go to the documentation of this file.
1 /* This file is part of KCachegrind.
2  Copyright (C) 2003 Josef Weidendorfer <Josef.Weidendorfer@gmx.de>
3 
4  KCachegrind is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public
6  License as published by the Free Software Foundation, version 2.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; see the file COPYING. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 /*
20  * Items of coverage view.
21  */
22 
23 #ifndef COVERAGEITEM_H
24 #define COVERAGEITEM_H
25 
26 #include <QTreeWidget>
27 #include "tracedata.h"
28 
29 class Coverage;
30 
31 class CallerCoverageItem: public QTreeWidgetItem
32 {
33 public:
34  CallerCoverageItem(QTreeWidget* parent, Coverage* c,
35  TraceFunction* base,
36  EventType* ct, ProfileContext::Type gt);
37  CallerCoverageItem(QTreeWidget* parent, int skipped, Coverage* c,
38  TraceFunction* base,
39  EventType* ct, ProfileContext::Type gt);
40 
41  bool operator< ( const QTreeWidgetItem & other ) const;
42  TraceFunction* function() { return (_skipped) ? 0 : _function; }
43  void setCostType(EventType* ct);
44  void setGroupType(ProfileContext::Type);
45  void update();
46 
47 private:
48  float _pSum;
49  SubCost _sum;
50  EventType* _costType;
51  ProfileContext::Type _groupType;
52  SubCost _cc;
53  int _distance, _skipped;
54  TraceFunction *_function, *_base;
55  Coverage* _coverage;
56 };
57 
58 
59 class CalleeCoverageItem: public QTreeWidgetItem
60 {
61 public:
62  CalleeCoverageItem(QTreeWidget* parent, Coverage* c,
63  TraceFunction* base,
64  EventType* ct, ProfileContext::Type gt);
65  CalleeCoverageItem(QTreeWidget* parent, int skipped, Coverage* c,
66  TraceFunction* base,
67  EventType* ct, ProfileContext::Type gt);
68 
69  bool operator< ( const QTreeWidgetItem & other ) const;
70  TraceFunction* function() { return (_skipped) ? 0 : _function; }
71  void setCostType(EventType* ct);
72  void setGroupType(ProfileContext::Type);
73  void update();
74 
75 private:
76  float _pSum, _pSelf;
77  SubCost _sum, _self;
78  EventType* _costType;
79  ProfileContext::Type _groupType;
80  SubCost _cc;
81  int _distance, _skipped;
82  TraceFunction *_function, *_base;
83  Coverage* _coverage;
84 };
85 
86 #endif
QTreeWidget
TraceFunction
A traced function.
Definition: tracedata.h:1122
CalleeCoverageItem::setCostType
void setCostType(EventType *ct)
Definition: coverageitem.cpp:224
CallerCoverageItem::operator<
bool operator<(const QTreeWidgetItem &other) const
Definition: coverageitem.cpp:134
EventType
A cost type, e.g.
Definition: eventtype.h:43
CalleeCoverageItem::operator<
bool operator<(const QTreeWidgetItem &other) const
Definition: coverageitem.cpp:302
tracedata.h
Coverage
Coverage of a function.
Definition: coverage.h:36
CalleeCoverageItem::CalleeCoverageItem
CalleeCoverageItem(QTreeWidget *parent, Coverage *c, TraceFunction *base, EventType *ct, ProfileContext::Type gt)
Definition: coverageitem.cpp:167
CallerCoverageItem::update
void update()
Definition: coverageitem.cpp:90
QTreeWidgetItem
ProfileContext::Type
Type
Definition: context.h:36
SubCost
Cost event counter, simple wrapper around a 64bit entity.
Definition: subcost.h:32
CallerCoverageItem::setCostType
void setCostType(EventType *ct)
Definition: coverageitem.cpp:84
CallerCoverageItem::setGroupType
void setGroupType(ProfileContext::Type)
Definition: coverageitem.cpp:74
CallerCoverageItem::CallerCoverageItem
CallerCoverageItem(QTreeWidget *parent, Coverage *c, TraceFunction *base, EventType *ct, ProfileContext::Type gt)
Definition: coverageitem.cpp:34
CalleeCoverageItem
Definition: coverageitem.h:59
CalleeCoverageItem::update
void update()
Definition: coverageitem.cpp:230
CalleeCoverageItem::setGroupType
void setGroupType(ProfileContext::Type)
Definition: coverageitem.cpp:214
CallerCoverageItem
Definition: coverageitem.h:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kcachegrind

Skip menu "kcachegrind"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal