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

kcachegrind

  • sources
  • kde-4.14
  • kdesdk
  • kcachegrind
  • libviews
partlistitem.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 #ifndef PARTLISTITEM_H
20 #define PARTLISTITEM_H
21 
22 #include <QTreeWidget>
23 
24 #include "tracedata.h"
25 
33 class PartListItem: public QTreeWidgetItem
34 {
35 public:
36  PartListItem(QTreeWidget* parent, TraceCostItem* costItem,
37  EventType* ct, ProfileContext::Type gt, TracePart* part);
38 
39  bool operator<(const QTreeWidgetItem& other) const;
40  ProfileCostArray* partCostItem() { return _partCostItem; }
41  void setEventType(EventType* ct);
42  void setGroupType(ProfileContext::Type);
43  TracePart* part() { return _part; }
44  void update();
45 
46 private:
47  SubCost _sum, _pure;
48  SubCost _callCount;
49  EventType* _eventType;
50  ProfileCostArray* _partCostItem;
51  TracePart* _part;
52  ProfileContext::Type _groupType;
53 };
54 
55 #endif // PARTLISTITEM_H
PartListItem::PartListItem
PartListItem(QTreeWidget *parent, TraceCostItem *costItem, EventType *ct, ProfileContext::Type gt, TracePart *part)
Definition: partlistitem.cpp:32
TraceCostItem
Definition: tracedata.h:980
PartListItem
For info tab, trace part list.
Definition: partlistitem.h:33
PartListItem::setEventType
void setEventType(EventType *ct)
Definition: partlistitem.cpp:56
EventType
A cost type, e.g.
Definition: eventtype.h:43
PartListItem::part
TracePart * part()
Definition: partlistitem.h:43
QTreeWidget
tracedata.h
ProfileCostArray
An array of basic cost metrics for a trace item.
Definition: costitem.h:144
PartListItem::partCostItem
ProfileCostArray * partCostItem()
Definition: partlistitem.h:40
PartListItem::setGroupType
void setGroupType(ProfileContext::Type)
Definition: partlistitem.cpp:64
QTreeWidgetItem::parent
QTreeWidgetItem * parent() const
TracePart
A Trace Part: All data read from a trace file, containing all costs that happened in a specified time...
Definition: tracedata.h:655
QTreeWidgetItem
ProfileContext::Type
Type
Definition: context.h:36
SubCost
Cost event counter, simple wrapper around a 64bit entity.
Definition: subcost.h:32
PartListItem::operator<
bool operator<(const QTreeWidgetItem &other) const
Definition: partlistitem.cpp:149
PartListItem::update
void update()
Definition: partlistitem.cpp:72
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:39:50 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
  • 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