summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprofiler/qmlprofilernotesmodel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* QMLPlugins: Remove foreach / Q_FOREACH usageArtem Sokolovskii2022-06-011-1/+2
| | | | | | | Task-number: QTCREATORBUG-27464 Change-Id: Ie3e3ec9fdaea856943e5325cabd21e52bf290e70 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Tracing: Untangle some includesUlf Hermann2018-05-151-0/+1
| | | | | | | | Forward declare in the header and include in the implementation where possible. Change-Id: Iea54f52fbf1deecab5f5a257821cd6383cf69a91 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Tracing: Don't restore notes for events that have been filtered outUlf Hermann2018-05-081-8/+10
| | | | | Change-Id: I4dc13e579e7994bb970d121a2baa8169a8dd1b2b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* QmlProfiler: Move parts of model manager and trace file to TimelineUlf Hermann2018-04-191-0/+5
| | | | | | | | This way we can use the trace file loading and saving mechanism for other profilers. Change-Id: I98ec1cdde6f7abcea152cabf72e64d4e696dfa59 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Timeline: Add stash() and restore() methods to notes modelUlf Hermann2018-04-171-2/+2
| | | | | | | | Those are needed when manipulating the model in a way that may change the indices, like restricting to a range or filtering by categories. Change-Id: I9f218d269cf23104c306960ef77c0fc41591daa1 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Replace manual signal blocking/unblocking with QSignalBlockerTobias Hunger2017-10-041-7/+8
| | | | | | Change-Id: Ibb59fab4e37d045e506c5a8172b6f5cbb955b028 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* QmlProfiler: Remove references to QmlProfilerDataModelUlf Hermann2017-02-241-1/+0
| | | | | | | | | | We keep it private to QmlProfilerModelManager and proxy the last few methods that were directly called on the model. This enables us to remove the QmlProfilerDataModel class by integrating what is left of it into QmlProfilerModelManagerPrivate in a next step. Change-Id: Ie9b4e03fb286e5a0040374d00b7b26f810426278 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* QmlProfiler: Avoid reloading notes twice on range restrictionUlf Hermann2016-07-061-1/+0
| | | | | | | | | | We need to clear them before we restrict as otherwise the other models will end up with invalid notes. Doing that by calling loadData() is inefficient as we need to call the same method again after finalizing, because the timeline models may have changed. Change-Id: I4cd6e13bfb73804aab8f1cfee6db4069a7b808cd Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* QmlProfiler: Add extra metadata to notesUlf Hermann2016-07-061-10/+33
| | | | | | | | | | | This way we can improve the heuristic used for mapping notes to timeline events, by taking the row into account. Also, by marking notes as loaded when loading them we avoid accidentally dropping them by restricting to ranges. Change-Id: I031389880571805788c910728ee89333a5cd4727 Task-number: QTCREATORBUG-16542 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* QmlProfiler: Use current restriction range when saving notesUlf Hermann2016-07-061-2/+8
| | | | | | | | | | | We don't want to clear notes outside the current restriction as those are still valid and need to be available for later reloading. Change-Id: If3e75ff2b2ab9a93578c5ca63f1b4a2f539dc802 Task-number: QTCREATORBUG-16542 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* QmlProfiler: Make members of QmlNote privateUlf Hermann2016-06-101-1/+1
| | | | | | | The only member that can change after initialization is the text. Change-Id: I6958f510e67c9fd6fe1f109c2676f80d93e7fd0c Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* QmlProfiler: Rename QmlProfilerNotesModel::add()Ulf Hermann2016-06-011-2/+3
| | | | | | | | The parent class has a public add() method which has to be qualified if the child class has a protected one. Change-Id: I6d61d6123618fc0b5065893656b36559aa5298be Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* QmlProfiler: Move notes into the notes modelUlf Hermann2016-05-061-14/+23
| | | | | | | | There is not reason to keep them in the general data model and cross reference between the models all the time. Change-Id: Ic77c518928dcd6234555cb3f6a830bcc3dc4a1a4 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* QmlProfiler: Fix the naming scheme for events and event typesUlf Hermann2016-05-041-6/+5
| | | | | | | | | | Move them out of the QmlProfilerDataModel class, drop the "Data" suffix, and rename symbols that refer to them in order to call them by their names. Change-Id: I41151359921b325edb79111371083c4185bd148b Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Timeline: Create new library from contents of QmlProfilerUlf Hermann2014-12-161-0/+1
| | | | | Change-Id: I964b2f149e237eb25a08600e8dab8968e8bc0cb9 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* QmlProfiler: Move timeline classes into own namespaceUlf Hermann2014-12-151-2/+2
| | | | | | | | The new namespace "Timeline" is for classes that are supposed to go to the generic timeline library later. Change-Id: I1f6dce59de2c37398b1ed89473e1a94ec020104b Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* QmlProfiler: split notes model in generic and specific classesUlf Hermann2014-12-151-156/+16
| | | | | Change-Id: I633dc6a862f344a7e5e86c25e44e400e3000f644 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* QmlProfiler: Use generic timeline classes where applicable.Ulf Hermann2014-12-151-8/+6
| | | | | Change-Id: I7bab7b20f3467f000a7ba4917919caa8f15ecf22 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* QmlProfiler: Split AbstractTimelineModel in two classesUlf Hermann2014-11-211-5/+5
| | | | | | | | We need a general purpose TimelineModel and a specialized QmlProfilerTimelineModel. Change-Id: I2da02d65efa11e160cab5fa9f8a21075beb0e2bf Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* QmlProfiler: make notes model usable on its ownUlf Hermann2014-11-211-0/+20
| | | | | Change-Id: Ifbc42208d3a34051fbf87cff7e9179f7dcdd7bf9 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* QmlProfiler: Merge SortedTimelineModel into AbstractTimelineModelUlf Hermann2014-11-211-6/+6
| | | | | | | | | | In order to provide a stable interface we need most of SortedTimelineModel to be private. There is no real benefit in keeping a distinction between AbstractTimelineModel and SortedTimelineModel as SortedTimelineModel isn't very useful on its own. Change-Id: Ibc6945e2740320f430f2634f95c7807d6b460123 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* QmlProfiler: Rename some classes and files to follow the common patternUlf Hermann2014-11-211-0/+230
The ones we'll refactor into the timeline library should be called timeline* and the others should be called qmlprofiler*. Change-Id: I6ecccbe4ef523681ca0baeef140368e2c1839964 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>