forked from qt-creator/qt-creator
QmlProfiler: option to get statistics from local region
Change-Id: Id11cce971b081d67052dd8e7c74f51e2e25a8fd8 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -138,6 +138,12 @@ void QmlProfilerEventsWidget::clear()
|
||||
m_eventParents->clear();
|
||||
}
|
||||
|
||||
void QmlProfilerEventsWidget::getStatisticsInRange(qint64 rangeStart, qint64 rangeEnd)
|
||||
{
|
||||
clear();
|
||||
m_eventTree->getStatisticsInRange(rangeStart, rangeEnd);
|
||||
}
|
||||
|
||||
QModelIndex QmlProfilerEventsWidget::selectedItem() const
|
||||
{
|
||||
return m_eventTree->selectedItem();
|
||||
@@ -375,6 +381,9 @@ void QmlProfilerEventsMainView::QmlProfilerEventsMainViewPrivate::buildModelFrom
|
||||
if (visitedFunctionsList.contains(binding))
|
||||
continue;
|
||||
|
||||
if (binding->calls == 0)
|
||||
continue;
|
||||
|
||||
QList<QStandardItem *> newRow;
|
||||
if (m_fieldShown[Name]) {
|
||||
newRow << new EventsViewItem(binding->displayname);
|
||||
@@ -531,6 +540,12 @@ QString QmlProfilerEventsMainView::nameForType(int typeNumber)
|
||||
return QString();
|
||||
}
|
||||
|
||||
void QmlProfilerEventsMainView::getStatisticsInRange(qint64 rangeStart, qint64 rangeEnd)
|
||||
{
|
||||
d->m_eventStatistics->compileStatistics(rangeStart, rangeEnd);
|
||||
buildModel();
|
||||
}
|
||||
|
||||
void QmlProfilerEventsMainView::jumpToItem(const QModelIndex &index)
|
||||
{
|
||||
QStandardItem *clickedItem = d->m_model->itemFromIndex(index);
|
||||
|
||||
Reference in New Issue
Block a user