From cf744b55a3fe252b8284956d18d61f46467dd721 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Thu, 9 Jun 2016 08:55:09 +0200 Subject: QmlMessageTrace: detect and combine repeated sections of backtraces If there are multiple tracepoints, it happens quite often that the most recent backtrace contains the backtrace that we already captured in handling the previous tracepoint. If the time difference is small enough and we find such a duplicated sequence of methods, don't repeat the Message output in the trace QML: pick up where the previous trace left off. Change-Id: I32f47430ab44fd7570569e0f347784d23197a3bc Reviewed-by: Shawn Rutledge --- imports/Diagrams/UmlSequence/Message.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'imports') diff --git a/imports/Diagrams/UmlSequence/Message.qml b/imports/Diagrams/UmlSequence/Message.qml index 92b441f..5b0ca94 100644 --- a/imports/Diagrams/UmlSequence/Message.qml +++ b/imports/Diagrams/UmlSequence/Message.qml @@ -47,13 +47,14 @@ MouseArea { property string params property string fromMethod property string backtrace + property bool inferredFromBacktrace: false + property bool toSelf: from && from === to + property bool backwards: from && to ? from.x > to.x : false + property real timestamp: 0 width: 100 height: 30 hoverEnabled: true z: 1 - property bool toSelf: from && from === to - property bool backwards: from && to ? from.x > to.x : false - property real timestamp: 0 Text { x: -root.x text: root.timestamp @@ -77,7 +78,7 @@ MouseArea { } Text { id: methodLabel - font.bold: true + font.bold: !root.inferredFromBacktrace anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter } -- cgit v1.2.3