forked from qt-creator/qt-creator
QmlProfiler: Add text marks for QML/JS types into documents
The text marks are little labels next to the lines in the editor that tell you how much of total run time was spent in the respective QML/JS construct during the last profiling session. This is similar to what the valgrind profiler does. We add the text marks only when the documents are loaded into an editor. This keeps the number of text marks manageable. Multiple events on a single line are shown using a tooltip. Task-number: QTCREATORBUG-17757 Change-Id: Ie38b8ab880a718a1ef72ef343d84070ab34bc5bc Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -36,6 +36,7 @@ const char LAST_TRACE_FILE[] = "Analyzer.QmlProfiler.LastTraceFile";
|
||||
const char AGGREGATE_TRACES[] = "Analyzer.QmlProfiler.AggregateTraces";
|
||||
const char SETTINGS[] = "Analyzer.QmlProfiler.Settings";
|
||||
const char ANALYZER[] = "Analyzer";
|
||||
const char TEXT_MARK_CATEGORY[] = "Analyzer.QmlProfiler.TextMark";
|
||||
|
||||
const int QML_MIN_LEVEL = 1; // Set to 0 to remove the empty line between models in the timeline
|
||||
|
||||
|
||||
Reference in New Issue
Block a user