Skip to content

Add toggle-able clipboard monitoring capability for bottleneck detection

Luc Tomas Le Pottier requested to merge clipboard-monitor into devel

Adds hidden parameters added to connectivity config:

  • In chip config: clipboardMonitor: <0/1> bit for enabling/disabling monitor threads
  • In top level config: clipboardMonitorRefreshTime: <unsigned> for setting sleep time between monitoring printouts, in microseconds. Default 10000 microseconds

Monitoring parameters:

  • inCount/outCount: in/out clipboard counts, in number of objects
  • inSize/outSize: in/out size, in bytes -> this is not possible to do from the templated clipboard implementation. Move elsewhere
  • queueSize: current queue size, in number of objects

Example configuration file, enabling monitoring for a single rd53b chip with config file test_chip.json, and refresh time 0.1 seconds:

{
    "chipType" : "RD53B",
    "chips" : [
        {
            "config" : "configs/test_chip.json",
            "tx" : 0,
            "rx" : 0,
            "enable" : 1,
            "locked" : 0,
            "clipboardMonitor": 1
        }
    ],
    "clipboardMonitorRefreshTime": 10000
}
Edited by Luc Tomas Le Pottier

Merge request reports

Loading