User Tools

Site Tools


tools:monitor:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tools:monitor:start [2018/07/18 10:49] – [How to use the Timer] graftools:monitor:start [2020/06/26 12:54] – [Save terminal output on a host computer via SSH] ursgraf
Line 20: Line 20:
 ===== How to use the Timer ===== ===== How to use the Timer =====
 The timer measurements can be used to monitor execution timing and notably realtime performance. After the creation of a periodic task, a monitor function can be added before the task is added to the ''Executor''. \\  The timer measurements can be used to monitor execution timing and notably realtime performance. After the creation of a periodic task, a monitor function can be added before the task is added to the ''Executor''. \\ 
-IMPORTANT Add the monitor function before adding the perdiodic task to the executor.+IMPORTANT Add the monitor function before adding the periodic task to the executor.
 <code cpp> <code cpp>
 eeros::task::Periodic periodic("control system", dt, timedomain);  // create a periodic with a given period  eeros::task::Periodic periodic("control system", dt, timedomain);  // create a periodic with a given period 
Line 90: Line 90:
 With this command it is possible to measure for multiple hours or even multiple days. With this command it is possible to measure for multiple hours or even multiple days.
  
 +===== Measuring a Single Block =====
 +Especially when implementing your own blocks one wishes to measure the time it takes to run it. This can be very useful for blocks with complex algorithms or in cases your timedomain with many blocks takes to much time to run and you want to pinpoint the culprit. For this purpose add a ''PeriodicCounter'' to the block and add  
  
tools/monitor/start.txt · Last modified: 2020/08/12 10:02 by ursgraf