]> sourceware.org Git - systemtap.git/commit
grapher: implement restarting a stap process
authorTim Moore <timoore@redhat.com>
Fri, 11 Dec 2009 13:03:47 +0000 (14:03 +0100)
committerTim Moore <timoore@redhat.com>
Fri, 11 Dec 2009 13:16:26 +0000 (14:16 +0100)
commite47f92ea31a605802c59541ca325ffd567c45ca4
tree8a10b369ed8836cf9c87cadc45050e67d768ca09
parente83324285bb277300f5c91ee1c2a39bf04df502d
grapher: implement restarting a stap process

* grapher/StapParser.cxx (StapParser::disconnect): new function
* grapher/StapParser.hxx (StapProcess::StapProcess): initialize argv to 0
* grapher/grapher.cxx (StapLauncher::setArgs): Set argv to 0
  (StapLauncher launch, launchUsingParser): Refactor launch(),
  extracting function a that (re)launches a stap process using an
  existing parser.
  (StapLauncher::onChildDied): call disconnect() on dead parser.
  (GrapherWindow::_graphicalLauncher, setGraphicalLauncher): delete
  member, replacing with...
  (graphicalLauncher): new variable
  (ProcModelColumns): Store parser object in the list model instead of
  just a StapProcess object.
  (ProcWindow::onRestart): new function
  (ProcWindow::refresh): Preserve the list selection when the process
  list is refreshed.
  (ProcWindow::onSelectionChanged): Manage the restart button's state.
grapher/StapParser.cxx
grapher/StapParser.hxx
grapher/grapher.cxx
This page took 0.026503 seconds and 5 git commands to generate.