linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yordan Karadzhov <ykaradzhov@vmware.com>
To: "rostedt@goodmis.org" <rostedt@goodmis.org>
Cc: "linux-trace-devel@vger.kernel.org" <linux-trace-devel@vger.kernel.org>
Subject: [PATCH v2 3/8] kernel-shark-qt: Update the visualization model when updating Graphs
Date: Fri, 9 Nov 2018 19:50:26 +0000	[thread overview]
Message-ID: <20181109195004.25455-4-ykaradzhov@vmware.com> (raw)
In-Reply-To: <20181109195004.25455-1-ykaradzhov@vmware.com>

Updating the model when the Graph widget is doing self-update, guarantees
that all previously plotted graphs are wiped out before plotting something
new.

Signed-off-by: Yordan Karadzhov <ykaradzhov@vmware.com>
---
 kernel-shark-qt/src/KsTraceGraph.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel-shark-qt/src/KsTraceGraph.cpp b/kernel-shark-qt/src/KsTraceGraph.cpp
index 21a09d0..29a5950 100644
--- a/kernel-shark-qt/src/KsTraceGraph.cpp
+++ b/kernel-shark-qt/src/KsTraceGraph.cpp
@@ -215,6 +215,7 @@ void KsTraceGraph::_selfUpdate()
 	_updateGraphLegends();
 	_updateTimeLegends();
 	_markerReDraw();
+	_glWindow.model()->update();
 	updateGeom();
 }
 
-- 
2.17.1

  parent reply	other threads:[~2018-11-10  5:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-09 19:50 [PATCH v2 0/8] New/improved KernelShark plugins Yordan Karadzhov
2018-11-09 19:50 ` [PATCH v2 1/8] kernel-shark-qt: Reset the second pass hash when reloading Sched plugin Yordan Karadzhov
2018-11-09 19:50 ` [PATCH v2 2/8] kernel-shark-qt: Improve the plotting logic of the Sched event plugin Yordan Karadzhov
2018-11-09 19:50 ` Yordan Karadzhov [this message]
2018-11-09 19:50 ` [PATCH v2 4/8] kernel-shark-qt: Add "Missed events" custom kshark_entry Yordan Karadzhov
2018-11-09 19:50 ` [PATCH v2 5/8] kernel-shark-qt: Add instrumentation for "Missed events" to the model Yordan Karadzhov
2018-11-09 19:50 ` [PATCH v2 6/8] kernel-shark-qt: Add tot_count field to the model descriptor Yordan Karadzhov
2018-11-09 19:50 ` [PATCH v2 7/8] kernel-shark-qt: Add "Missed events" plugin for KernelShark Yordan Karadzhov
2018-11-09 19:50 ` [PATCH v2 8/8] kernel-shark-qt: Update Sched Events plugin Yordan Karadzhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181109195004.25455-4-ykaradzhov@vmware.com \
    --to=ykaradzhov@vmware.com \
    --cc=linux-trace-devel@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).