aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/qmlprofiler/flamegraphmodel.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-12-11 11:09:29 +0100
committerUlf Hermann <ulf.hermann@theqtcompany.com>2016-01-06 14:20:47 +0000
commit4e29a946c786d3ca62215c473609f35ce2c35008 (patch)
tree5b7b80f469a67caaa6e3988dd160d23e3f1345f3 /plugins/qmlprofiler/flamegraphmodel.cpp
parentb85598ecd3c2d39e6a0f4bdf88eb6a1a186a19de (diff)
Add flamegraph view
Change-Id: I001053b63d27adcbbdfd95abb2b45f5f5fa05447 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'plugins/qmlprofiler/flamegraphmodel.cpp')
-rw-r--r--plugins/qmlprofiler/flamegraphmodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/qmlprofiler/flamegraphmodel.cpp b/plugins/qmlprofiler/flamegraphmodel.cpp
index 16783913e7..b31ad74938 100644
--- a/plugins/qmlprofiler/flamegraphmodel.cpp
+++ b/plugins/qmlprofiler/flamegraphmodel.cpp
@@ -231,6 +231,7 @@ QVariant FlameGraphModel::lookup(const FlameGraphData &stats, int role) const
case Line: return type.location.line;
case Column: return type.location.column;
case Type: return nameForType(type.rangeType);
+ case RangeType: return type.rangeType;
case Details: return type.data.isEmpty() ?
FlameGraphModel::tr("Source code not available") : type.data;
default: return QVariant();
@@ -320,6 +321,7 @@ QHash<int, QByteArray> FlameGraphModel::roleNames() const
names[Note] = "note";
names[TimePerCall] = "timePerCall";
names[TimeInPercent] = "timeInPercent";
+ names[RangeType] = "rangeType";
return names;
}