Changelog¶
All notable changes to this project are documented here. Format follows Keep a Changelog; versions follow SemVer.
[Unreleased]¶
[0.8.0] - 2026-11-02¶
pulse-top 0.7.0: pulse-export moves to port 10061, ships Prometheus alerting rules, and stops exporting leftover logs and duplicate warn series. Also carries pulse-top 0.6.1's lower Textual floor. The probe and pulse_bridge are unchanged.
Changed¶
- pulse-export listens on port 10061 by default, not 9464. The
Prometheus default-port list
gives 9464 to the OpenTelemetry Node.js exporter, so the two could not run on one host with
their defaults. The exporter range 9100-9999 is full, and 10061 is the next free port in the
10000+ block that continues it. To keep an existing scrape config, pass
--port 9464.examples/grafana/now publishes and scrapes 10061. A changed default, so pulse-top goes to 0.7.0, not 0.6.2. - Textual floor lowered from 8.2.7 to 2.0 (issue #71), released as pulse-top 0.6.1 on
2026-10-21. Every Textual from 4.1
on requires pygments>=2.19.2, so on Ubuntu 24.04
pip install --break-system-packagesreplaced Debian's python3-pygments (2.17.2). Textual 2.0 to 4.0 need only rich>=13.3.3, which Debian's python3-rich (13.7.1) satisfies; install with"textual<4.1"there to keep both. The terminal theme falls back to Textual's pre-8.2.5 name for it (textual-ansi). CI runs the suite on the floor and on the Ubuntu 24.04 set as well as on the latest Textual. - pulse-top installs with pipx in the docs. pulse-top imports nothing from ROS, so the README,
the docs.ros.org guide and docs/EXPORT.md now lead with
pipx install ros2-pulse-top(in apt on 22.04 and 24.04), withuv tool install, aros:<distro>container recipe and the capped system-pip line as alternatives, instead of a barepip3 install.
Added¶
- Prometheus alerting rules for pulse-export in
examples/prometheus/ros2_pulse_alerts.yml: the probe'stopic_rate,topic_gapandnode_missingwarns, a warn that keeps coming back (info), arecv_lagdeficit, a topic that stopped publishing while its process still writes windows, a process that stopped writing windows (warning), and pulse-export itself down.ros2_pulse_alerts_test.ymltests them on synthetic series, and a new CI job runspromtool check rulesandpromtool test rules(Prometheus 3.5.0) and checks the compose example's config. A pytest checks every metric and label the rules use against pulse-export's metric catalogue.examples/grafana/loads the rules and evaluates them every 5 s. docs/EXPORT.md has a new Alerting section. - The RMW matrix runs in CI.
.github/workflows/rmw-matrix.ymlrunstest/rmw/run_rmw_matrix.shon humble, jazzy and kilted when the probe or the matrix changes, and on main. The script gains armw_zenohleg with Zenoh shared memory that fails unless a pool-sized shared-memory segment shows up and no process logs a ShmProvider error. - README: a "Used with" section (ros2_data_collection, ros2-kubernetes-lab).
Fixed¶
- pulse-export no longer scrapes logs of exited processes as live. The follower replays every
matching log on attach and the probe never deletes its log, so on each start pulse-export
exported one leftover
topic_freq.<pid>.logper process of every earlier run with its last rates and an age of 0, until it forgot them five minutes later. It now skips a log whose mtime is older than the forget horizon (--oncestill reads any log). It also forgets a process on its jsonl exit window ("partial": trueafter another window), as pulse_bridge's/diagnosticsalready did, and keeps a process for four window periods when that is longer than five minutes, so a slow window is not forgotten between two flushes. - pulse-export no longer repeats a
ros2_pulse_warn_activeseries in one scrape. The probe's warns carry no side or transport, so a spec with apuband arecvrule on one topic (or an inter and an intra one) that both warned in a window gave two samples with the same labels, and Prometheus rejects a scrape with a duplicate series. Each label set is now one sample, in the scrape and in the OTLP push, andros2_pulse_warns_totalstill counts every warn read. A node listed twice in the spec'snodes:did the same towarn_activeandnode_up. - examples/grafana/README.md said the probe must log jsonl. pulse-export reads the default text format too.
[0.7.0] - 2026-10-21¶
/diagnostics for diagnostic_aggregator, the rest of rclcpp's removed topic statistics (MINIMUM, STDDEV, message_age), graph-monitor messages, per-endpoint counts, and a package guide on docs.ros.org. pulse-top 0.6.0 reads the endpoint fields.
Changed¶
- The probe counts per publisher and per subscription, attributed to the owning node.
Counters used to be keyed by topic per process, so every endpoint of a topic in one process
shared one counter. Two subscriptions on one topic (a component container, or one node
subscribing twice) interleaved one inter-arrival stream, two subscriptions of one node summed
into one rate, and every node's
/rosoutand/parameter_eventsendpoints shared one counter, so one node's log line kept every node of the process in theNODElist (found in the #68 and #70 reviews). Each rcl publisher handle and rcl subscription handle now has its own counter, attributed to the node whose handle its init carried (including the/rosoutpublisher rcl creates beforercl_node_init's tracepoint fires). The hot path is still one relaxed add, on the handle's own counter; the per-topicTOPIC/PUB/RECV/LOANrates are summed at flush time and are unchanged, and the per-topicJITTERgap keeps measuring the gap between any two messages of the topic. With gap tracking on, each arrival also updates its handle's own gap from the same clock read (one more atomic exchange). Node liveness now looks only at a node's own endpoints. A publisher or subscription address reused after a destroy re-homes its endpoint, which also stops a recycled publisher handle from counting into its previous topic. - Destroyed publishers, subscriptions and nodes are retired. There is no destroy tracepoint,
so the probe now also wraps
rcl_publisher_fini,rcl_subscription_finiandrcl_node_finiby name (graph-rate calls, the per-message path is unchanged). A destroyed endpoint is written once more if its last window carried traffic, then dropped; before, a subscription removed in a lifecycleon_cleanup(or by unloading a component) stayed in every window as a stalledinter=0.0endpoint of a live node, and a destroyed publisher's open gap grew without bound with gap tracking on. A node address reused by the next node no longer hands that node the destroyed node's endpoints: only the new node's own pre-init/rosoutpublisher is claimed. A callback address reused by a re-created subscription is re-resolved (its endpoint is proven again for KNOWN_ISSUES #12, and counts no longer go to the destroyed subscription), and the thread-local cache is tagged by kind, so a publisher handle address reused as a subscription handle (or the reverse) is never served the other one's endpoint (PR #72 review).
Added¶
pulse_bridgepublishes/diagnostics(diagnostics:=true). Onediagnostic_msgs/DiagnosticArrayper poll fordiagnostic_aggregator: a status per expected-rate rule (ros2_pulse: /scan (recv),WARNwhile the probe warnstopic_rateortopic_gapfor it, withhz, the rule's bounds and the measured gap as values), per spec node (ERRORonnode_missing), and per log (ERRORstaleonce no window arrived for two window periods plus a poll; a log whose latest window is the probe's exit window is dropped instead, a clean exit is not a fault). The levels come from the probe'swarns; the bridge reads the spec (expected_file, default$ROS_TOPIC_STATS_EXPECTED) only to know the rules, so a rule that holds reportsOK. New parameters:diagnostics,diagnostics_topic,hardware_id,diagnostics_all_topics(also report topics without a rule),expected_file.package.xmlnow declaresdiagnostic_msgs. The jsonl reader (sLogWindow::warns) now parseswarns;pulse-checkstill ignores them and judges the raw rates.- Per-endpoint breakdown in the output, additive. jsonl records gain an
endpointsarray (always present in probe output): one entry per publisher / subscription withtopic,side(pub/recv), a process-uniqueid,node(absent when unknown),inter_hz,intra_hz, andmax_dt_ms/loaned_hzwhen measured. Text windows get the same asEPlines with the newROS_TOPIC_STATS_ENDPOINTS=1; without it the text output is unchanged. Same emit gates as the topic lines; filtered topics stay filtered.pulse-check's reader (and sopulse_bridge) parses both intosLogWindow::endpoints; pulse-top parses them intoWindow.endpointsand treatsEPas a known line kind. One malformedendpointselement costs pulse-top that element only, never the window. TextEPlines need pulse-top 0.6.0: pulse-top /pulse-export0.5.0 count eachEPline as a skipped line (ros2_pulse_lines_skipped_total); jsonl works with 0.5.0, which ignores the key. pulse_bridgepublishes the rest of what rclcpp's built-in topic statistics did. Those were removed from Rolling by rclcpp#3203. WithROS_TOPIC_STATS_JITTER=1,message_periodmessages now carryMINIMUMandSTDDEVof the received inter-arrival period next toAVERAGE,MAXIMUMandSAMPLE_COUNT, in libstatistics_collector's order (AVERAGE,MAXIMUM,MINIMUM,SAMPLE_COUNT,STDDEV). Withmetrics_source:=metricevery message carries all five points, NaN when unmeasured, as upstream did; the default topic layout leaves an unmeasured point out. The probe keeps the minimum and the running sums for these per subscription, next to that subscription's own gap accumulator, and pools them per topic at flush time, so two subscriptions on one topic never interleave their intervals: lock-free, about +3 ns per receive, and only while gap tracking is on.message_age. Thermw_takehook now also reads the DDS source timestamp it already received, and with gap tracking on records local wall clock minus that timestamp per inter-process take, for rclcpp subscriptions too (their receive is still counted atcallback_start). The newmetrics_source:=metricbridge parameter publishes it as rclcpp did:metrics_sourceismessage_age/message_period(in that order, one pair per receive-side topic,message_ageempty withSAMPLE_COUNT0 when unmeasured; publisher-only topics are left out),measurement_source_namethe node. This matches rclcpp Jazzy+ (now - message_info.source_timestamp, negative ages from a publisher whose clock runs ahead are kept); Humble / Iron rclcpp usedheader.stamp, which needs the message type. Intra-process deliveries never reachrmw_takeand carry no age, with one exception: with intra-process comms on and a remote subscriber present, the DDS copy that rclcpp takes and discards in the same-process subscription is still age-sampled atrmw_take(counts and the receive period are unaffected). Cost: one wall-clock read per take with a source timestamp, about +26 ns on x86-64.- jsonl topic entries gain
recv_min_dt_ms,recv_stddev_dt_msandrecv_age_avg_ms/recv_age_min_ms/recv_age_max_ms/recv_age_stddev_ms/recv_age_count, each group only when measured. The text format is unchanged.recv_age_stddev_ms(and the ageSTDDEVpoint) is dropped for a window whose ages spread over more than ~71 min rather than reported wrapped; a constant cross-host clock skew does not affect it. - jsonl
endpointsentries of a subscription gain its own receive distributions, the per-subscription twins of the topic keys above:avg_dt_ms/min_dt_ms/stddev_dt_ms/dt_countandage_avg_ms/age_min_ms/age_max_ms/age_stddev_ms/age_count, each group only when measured (gap tracking on). Drained from the accumulators the topic already pools, at flush time; the hot path is unchanged. TextEPlines are unchanged. - jsonl windows gain
"partial":trueon the probe's first window after attach and its exit window, the two it already grace-skips for alerts (absent otherwise, so existing records are byte-identical).pulse-check's reader parses it intosLogWindow::partial; pulse-top ignores it. The text format is unchanged. - pulse_bridge:
rosgraph_monitor_msgs/TopicStatisticsfor graph-monitor (graph-monitor#14). Withgraph_monitor:=truethe bridge also publishes each window on/topic_statistics(graph_monitor_topic):PUBLISHED_PERIOD/RECEIVED_PERIODper (node, topic), withwindow_count,mean= 1 / rate andmax= largest gap when jitter tracking is on. With jitter tracking on,RECEIVED_PERIODtakesmean/minfrom the subscription's own interval distribution andTAKE_AGEcarries its message age (mean / min / max, a negative age sent as 0);PUBLISHED_PERIODminstays 0 (not tracked). Each endpoint is reported under its owning node from the per-endpoint split, so a component container reports every node; two handles of one node on one topic and side report the slower one, not the sum. A partial window sends noPUBLISHED_PERIOD, andRECEIVED_PERIODonly from a measured interval mean. Messages are stamped with the bridge's system clock at publish, like graph-monitor's shim, and the bridge warns once per log whenwindow_s+poll_period_sreaches graph-monitor's stale timeout (graph_monitor_stale_timeout_ms, 3000 by default); the README example setsROS_TOPIC_STATISTICS_PUBLISH_PERIOD=1. A log without the split (an older probe) falls back to per-process sums, and a process with several active nodes is then skipped with a warning, repeated at most once a minute (PR #68 review). Off by default;rosgraph_monitor_msgsis a new<depend>foundQUIET, so a source build without it still builds the bridge. Mapping in the pure core (topic_statistic_mapper), 30 unit tests, 6 bridge integration tests. - A package guide on docs.ros.org.
doc/androsdoc2.yamlreplace the generated page of internal C++ structs with a quickstart and reference pages, andpackage.xmldeclares theros2_documentation_areaexport so the ROS 2 docs can list the package on their introspection pages (ros2_documentation#7240).
[0.6.0] - 2026-10-14¶
Receive rates for rclpy nodes, loaned-message counts, and the tracetools version in the banner. pulse-top 0.5.0 reads the loan fields.
Added¶
- Receive rates for rclpy and every other non-rclcpp rcl client. The probe now also hooks the
rmw_taketracepoint, which carries the rmw subscription handle and atakenflag, and counts a successful take into the topic'sRECV interrate. The handle maps to the topic throughrcl_subscription_init, which was already hooked.rcl_takeis not used: its tracepoint carries only the message pointer and fires even when nothing was taken. rclcpp subscriptions stay oncallback_start, decided per subscription throughrclcpp_subscription_init, so an rclcpp delivery is never counted twice, and the intra-process plus external subscriber case (rclcpp takes and drops its own DDS copy) does not inflate the rate. Takes on rmw-internal readers and empty takes are ignored. Needs an rmw that emitsrmw_take: Cyclone DDS and Fast DDS on every distro, Connext from Jazzy. On Humble, serialized and loaned takes emit nothing. - tracetools version in the startup banner, and a warning on an untested one. The banner now
ends with
tracetools=<version>, read from the tracetools package.xml next to the libtracetools.so serving the hooks (thercl_inittracepoint's version field is added inside tracetools, the interposer never sees it). A major other than the ones CI runs (4.x Humble, 8.x Jazzy to Lyrical, 9.x Rolling) prints a one-line warning; counting still proceeds, since upstream deprecates tracepoint arguments rather than removing them. - Loaned-message counts per topic (rclcpp#3153 follow-up). A loaned message cannot be told
apart from a copy at the tracepoint level (Jazzy+ fires the plain
rcl_publishtracepoint for a loaned publish, only Rolling traces the loaned take, Humble traces neither), so the probe now also interposesrcl_publish_loaned_messageandrcl_take_loaned_messageby name. rclcpp calls them only when the middleware can loan, so a successful call is a real loan. New additiveLOAN <topic> pub|recv hz=text lines andpub_loaned_hz/recv_loaned_hzjsonl keys, absent when zero (loan-free logs are byte-identical). They are subsets:TOPIC/pub_inter_hzstays the total publish rate on every distro, without double counting the Jazzy+ tracepoint, which the probe detects at run time on the first loan.pulse-check's reader, pulse-top and pulse-export read the new fields; pulse-export addsros2_pulse_topic_loaned_rate_hertz{side=pub|recv}. The two rcl symbols join the export map by exact name; unlike tracepoints their signatures are stable per distro, not promised across distros (README Limitations, docs/DESIGN.md). The real functions are found throughRTLD_NEXT, or through the already-loaded librcl when a plugin loaded itRTLD_LOCAL, so the wrappers never turn a working loaned call into an error. Verified end to end on Humble with Fast DDS data sharing (test/integration/test_loaned.py), and the same code without the profile counts zero loans. - pulse-top 0.4.0:
pulse-export, Prometheus / OTLP exporter and a Grafana example. A second entry point inros2-pulse-topthat tails the probe's jsonl logs with pulse-top's follower and parser and serves/metricsin the Prometheus text format on port 9464 from a stdlib HTTP server: per-topic publish and callback rate per path, largest gap,recv_lagdeficit, active warns, node up and last-seen age, per-process window period, age and timestamp, and window / warn / skipped-line counters, labelledpid(fromtopic_freq.<pid>.log),topic,node.--otlp URLpushes the same series as OTLP/HTTP JSON throughurllib(gauges, cumulative sums, UCUM units; checked against OpenTelemetry Collector 0.128.0). Absent keys stay absent series, never 0; a process that stops flushing loses its topic series after two periods and keeps a growing age. No new dependency.examples/grafana/holds a docker compose (exporter, Prometheus, Grafana) and a provisioned dashboard,--demoincluded; docs pagedocs/EXPORT.md.default_log_pathmoved fromapp.pytoreader.pyso the exporter does not import the TUI. 19 new pulse-top tests. - pulse-top 0.3.0:
recv_lagwarn (issue #50). When a publisher's process and a subscriber's process are both probed, pulse-top pairs the topic's publish rate (busier path) with its callback rate (inter + intra) and warns once the callbacks sit more than--lag-tol(default 10%) and more than two messages per window under the publish rate for--lag-windows(default 3) consecutive windows; it clears under half the tolerance and holds in between. A publish observation older than 1.5 periods cannot pair, so a dead or idle publisher (recv reads an explicit 0.0, KNOWN_ISSUES #12) is not lag; trackers are keyed by topic and source log, so a healthy subscriber process does not mask a lagging one, and a warn whose subscriber stopped flushing clears by time. Amber in the table (RECV cell), strip and Warns tab, with deficit, windows and source file in the sidebar; the text says the probe counts callbacks, not wire samples, so it cannot tell a drop from a backlog. Derived by the consumer: the probe, its output format, the spec grammar andpulse-checkare unchanged. Test node modeslow_listener <ms>andtest/integration/test_recv_lag.pyprove the two logs carry the gap and the model derives the warn from them; 21 new pulse-top tests. - Blog post, "Watching a ROS 2 topic changes it"
(
docs/blog/2026-09-18-watching-a-ros2-topic-changes-it.md, on the docs site under Blog). The observer-effect bench written up for a systems-programming audience: what a subscriber costs (hz7 %,echo31 % of a core per watched 100 KB topic), whyhzon an intra-process topic switches serialization on in the watched process (+52 % CPU, 10/10 trials), howLD_PRELOADinterposition of theros_trace_*symbols counts in-process instead, and what that costs (+1.9 % ± 0.7 % paired). Every number cites its file and line in a trailing comment. Two figures underdocs/assets/blog/, regenerated from the committed CSV bybench/plot_observer_effect.py.site/build.pynow rewrites links relative to the page's own directory (pages underblog/), and folds../in link targets, so a results page linking../../bench/RESULTS.mdlands on the benchmarks page instead of GitHub.
Fixed¶
- A loaned publisher on Humble had no
TOPICline. Humble'srcl_publish_loaned_messagefires no tracepoint, so a node publishing throughborrow_loaned_message()with a loan-capable middleware (Fast DDS with data sharing on) was invisible on the publish side. The new loaned-message wrapper (see Added) counts it in the total as well. - pulse-top 0.4.1: pulse-top found no files on a default-format stack (issue #58). With the
probe in
.bashrcand noROS_TOPIC_STATS_FORMAT, every log is in the default text format. pulse-top parsed jsonl only, and it redrew the top bar only after a parsed window, so a directory of healthy text logs read "0 file(s)" forever even though the glob had matched them all. pulse-top and pulse-export now read the text format as well, sniffed per line like the C++log_reader, and a text window maps to the sameWindowits jsonl twin parses to (a line the probe did not print stays an absent field, never 0). The top bar is redrawn every tick, puts the file count before the path, and a notice line says why the table is empty: no file matches yet, N files found and waiting for the first window, or which files are not probe output. The follower now keeps blank lines, which close a text window, so no window arrives one period late. pulse-export'slines_skipped_totalcounts only lines that are in neither format. - pulse-top 0.4.1:
--theme light|dark|terminalandPULSE_TOP_THEME(issue #59). The colours were hard-coded for a dark background, unreadable on the white terminals used outdoors.lightis black on white with warn colours picked to read on white (amber is brown, not yellow);terminalpaints nothing and uses the terminal's own background and ANSI palette (Textual'sansi-darktheme);darkstays the default. The stylesheet now takes every colour from the Textual theme. The active tab's label was invisible while the tab bar had focus (purple on purple) and is readable again. Textual floor raised to 8.2.7 for the ANSI theme. - A publisher frozen by SIGSTOP read as a ~0 ms gap after it resumed. The flush timer
advanced its deadline one interval per fire, so when the whole probed process was frozen (the
flush thread with it) it replayed every missed tick back to back on SIGCONT: one window
carrying the stall, then a burst of ~0-length windows with a near-0
pub_max_dt_ms/recv_max_dt_msand nonsense Hz (50,000 Hz in one run). pulse-top and pulse-export keep the latest window, so a 5 s camera freeze showed as a 0.03 ms gap and thetopic_gapwarn was buried. The timer now re-phases instead of replaying: after a stall there is exactly one long window holding the full gap (5021 ms on the same repro), then normal cadence, and no window is ever shorter than half a period. Same fix on the receive side (a frozen subscriber process). The gap accounting itself was already right and is unchanged; the hot path is untouched. Regression testTimer.NoCatchUpBurstAfterStall.
Changed¶
- docs/ALTERNATIVES.md compares against NVIDIA's
greenwave_monitor, the packaged subscriber-based monitor a Discourse reader said they were switching from; section plus a positioning-table row.
[0.5.0] - 2026-09-09¶
Adds an optional /statistics sidecar. The probe itself is unchanged.
Added¶
pulse_bridge(ros2 run ros2_pulse pulse_bridge): tails the probe's jsonl log(s) and republishes every window on/statisticsasstatistics_msgs/MetricsMessage, in the shape rclcpp's built-in topic statistics use (unitms,AVERAGE= message period,SAMPLE_COUNT,MAXIMUM= largest gap when measured), so existing consumers of that topic read pulse windows, intra-process included, with no integration work. Parameters:files,glob(default$TMPDIR/topic_freq.*.log, re-expanded every poll),topic,unit(ms|Hz),poll_period_s,source_name. Runs as its own process so the probe stays out of the DDS graph and free of rclcpp;package.xmlnow declaresrclcppandstatistics_msgsfor this executable only. Rate is measured at the subscription when the process has one, at the publisher otherwise; inter/intra report the busier path, never the sum. Text-format logs are refused with one warning per file. Asked for on ROS Discourse (topic 57637).- core
metrics_mapperandline_follower: the window-to-sample mapping and the incremental line reader behind the bridge, ROS-free so both run in the standalone gtest lane (16 tests).test/integration/test_bridge.pycovers the message shape, tail-follow of a window appended after startup, theHzunit and text-log refusal (3 tests). - apt install instructions. The rosdistro entries for humble, jazzy and kilted merged on
2026-08-30 and the build farm has published
ros-<distro>-ros2-pulse0.4.1-2 toros2-testing; README now documentsapt installplus how to enable the testing repository before the next sync to the main ROS 2 repository. - Social preview card (
docs/assets/social-preview.png). Used as the repository's social preview and asog:image/twitter:imageon the docs site, so links to either render a real card instead of GitHub's default. The docs metadata lives insite/overrides/main.html, wired up withtheme.custom_dir.
[0.4.1] - 2026-08-23¶
Packaging fix for the apt release; no behaviour change.
Fixed¶
babeltraceis no longer a declaredtest_depend: it has no rosdep mapping for RHEL, and humble, jazzy and kilted all release on RHEL, so the declaration blocked bloom's RPM generation and would have failed the build farm. The LTTng coexistence test already skips when no trace viewer is installed; CI installsbabeltrace2explicitly so the jazzy and kilted lanes keep running it.
Added¶
- Observer-effect bench (
bench/run_observer_effect.sh, raw underbench/out/observer_effect/): whatros2 topic hz/echocost and what they do to the topic. N=10 rotated arms on the stress farm, probe as the in-process ruler. Findings: the stock tools read the rate right (publisher held 50.000 Hz,hzwithin 0.3 %); they cost 7 % (hz) / 31 % (echo) of a core per watched 100 KB topic; and on an intra-process topic the watcher switches serialization on, +52 % CPU on the watched process,rcl_publishpath lit in 10/10 trials. README "Why", ALTERNATIVES and bench/RESULTS.md carry the numbers. - Launch video source (
video/): a 40 s Remotion composition: hook, the measured cost ofros2 topic hz/echo, the one-line probe, realpulse-topframes through a/scanstall, the Orin/x86 numbers, CTA. Every on-screen number lives invideo/src/data.tswith the file it cites;capture_frames.pylabels stall / Warns-tab frames by pixel colour so the cut does not depend on capture timing. Rendered MP4 ships as a GitHub Release asset, not in git. - README demo GIF of
pulse-top --demo(docs/assets/pulse-top-demo.gif, 30 frames through one scripted-incident loop, rendered headlessly from Textual screenshots).
Fixed¶
- pulse-top: a
topic_ratewarn for an in-range rate could read20.04Hz > max 22.0Hz; the detail picked "> max" whenever the rate was not below min. It now names the bound actually crossed, or the bounds when neither is, and rounds the rate to one decimal. The demo's/cmd_velsag (18.4 ± 1.5 Hz against a 19 Hz min) overlapped the bound and fired such warns; it now sags to 14.5-17.5 Hz. Window title ispulse-top, not the class name.
[0.4.0] - 2026-08-23¶
Launch release: the live dashboard lands, and every performance claim now has an aarch64 row behind it: v0.3.0 was run on a production Jetson AGX Orin and the numbers, raw trials and a redacted production log are committed. pulse-top was then fixed against that very log.
Added¶
- pulse-top (
tools/pulse-top/): live terminal dashboard over the probe's jsonl log (pip install ./tools/pulse-top, commandpulse-top). A pure log consumer (no ROS dependency, no node, no subscriptions), so watching costs the probed system nothing and works over ssh or on a dead log post-mortem, unlike graph-joining monitors (ros2top, ornis, ...), and it sees the intra-process rates only the in-process probe can measure. Topics table with 60-window sparklines and warn-colored rows, namespace tree, node liveness, and a retained structured-warns view with ages (a one-window stall stays readable instead of blinking for one window period). Two rules carried into the UI: an absent jsonl key renders as—(never 0), and a topic absent from the current window renders asstale <age>, never as its old rate. Hardened by review (#32/#33): byte-exact tail-following (rotation/truncation-safe, partial multi-byte holds), tail-seek attach with a per-poll read cap, and log-derived text rendered without any markup parsing so a hostile or corrupt log cannot crash the viewer.pulse-top --demoruns a scripted-incident graph; 36 tests (model, byte-exact reader, headless pilot) plus a hostile-log smoke run in a dedicated no-ROS CI lane. - On-Orin validation (
test/orin/RESULTS.md, raw undertest/orin/out/): v0.3.0 run on a production Jetson AGX Orin (L4T R36.4, Humble/CycloneDDS, 77 nodes). Hot-path bench on aarch64: 0.9 ns/op fixed, 2.1 ns/op alternating; the opt-in jitter clock read costs +51 ns/msg ± 0.6 (x86: +24) and theCLOCK_MONOTONICvDSO works; the syscall-fallback risk from the R5 design is closed. Probe loaded into every process of the deployed stack on stock binaries, 0 sockets, all v0.3.0 features (JITTER,jsonl,QUIET) verified on target. Production log committed with operator node/topic names redacted. README, bench results and the R5 design note carry the aarch64 numbers. test/orin/run_orin_probe_test.shhonorsROS_TOPIC_STATS_OUTPUT_FILEand records process names with the CPU samples so ON/OFF runs can be matched across a stack restart.ORIN_RUNBOOK.mdPhase 0 no longer needs git credentials on the robot.
Fixed¶
- pulse-top on a multi-process stack. Staleness was counted in windows, but windows from
every probed process interleave (77 nodes ≈ 15 windows/s), so a healthy 5 Hz topic read
stale 3wand every row re-rendered every tick;/tf_staticlost itsPUBrate whenever a subscriber's window landed; the sparkline took one sample per process-window instead of per period; and the default path followed only the newesttopic_freq.<pid>.log, one node of the graph. Now: staleness is wall time from the window timestamps (stale 12spast 1.5× the topic's window), publish and receive sides merge per topic, one history sample per period, every matching per-pid file is followed (new ones picked up live), and only cells whose text or style changed are pushed to the table; Textual'sDataTable.update_cellinvalidates and refreshes unconditionally, so the idle repaint cost over ssh is now zero. Found on the Orin run (2026-08-23).
[0.3.0] - 2026-08-20¶
Observability-formats + soundness release: gap visibility closes the stall blind spot in 0.2.0's rate alerting, JSON Lines output lands for sidecar exporters, and the RMW matrix / LTTng coexistence results make the compatibility claims measured rather than assumed.
Added¶
- Gap visibility (ROADMAP R5):
ROS_TOPIC_STATS_JITTER=1measures the largest inter-arrival gap per endpoint per side and emitsJITTER <topic> <side> max_dt_ms=…, plus amax_gap_ms:spec rule,WARN TOPIC <name> max_dt_ms=… expected_max_gap_ms=…, andpulse-checkgating. This closes a soundness hole in the 0.2.0 rate alerting: a windowed mean cannot see a stall, so at 50 Hz amin_hz: 45rule needs >0.5 s of dead time to fire and a 400 ms freeze passes at 46 Hz. Max gap is window-length-independent, and it also coversRate-driven control loops (ros2_control, Nav2, MoveIt Servo) that emit no timer tracepoint, via the topics they publish. Costs +24 ns per message when on (~0.012% of a core at 4900 msg/s); default off, and amax_gap_msrule enables it implicitly so a declared rule is never silently unchecked. pulse-checkexits 2 when a spec requires a gap the logs cannot answer: measurement absence is not a health verdict. Violations it did measure are still printed.- Quiet banner (ROADMAP R6):
ROS_TOPIC_STATS_QUIET=1suppresses the[ros2_pulse] activestderr banner for stderr-parsing deployments. Narrow on purpose: it silences the informational banner only; the one-shot error diagnostics (unreadable/malformed/zero-rule spec, unwritable output file) always print, because silently disabled alerting is the 0.2.0 bug class this flag must not reintroduce. - LTTng coexistence test (closes ROADMAP R3):
test/integration/test_lttng_coexist.pyasserts the probe and a live LTTng session capture the same run: probe log rates and >0ros2:*events via babeltrace, proving thedlsym(RTLD_NEXT)forwarding feeds both consumers. Runs on the jazzy/kilted CI lanes (newlttng-tools/babeltracetest_depends); skips on stock humble, whose tracetools ships no lttng-ust backend (detected vialdd). - RMW support matrix (ROADMAP R6):
test/rmw/run_rmw_matrix.shvalidates the probe per-middleware in stockros:<distro>containers: rmw_fastrtps (control leg), rmw_cyclonedds plain and with iceoryx shared memory (iox-roudi +<SharedMemory>config - a new fixed-size UInt64 talker/listener pair, because String is not SHM-eligible), and
rmw_zenoh (no DDS at all; needs the
rmw_zenohdrouter for discovery), asserting publish-side, receive-side and intra-process rates at 50 Hz ±30% with the same parser the CI accuracy suite trusts. All four configurations green on ros:humble / ros:jazzy / ros:kilted (2026-08-08). README gained a per-RMW matrix with measured rates, exact package versions and the SHM-attribution caveat; evidence lands undertest/rmw/out/. Containers get a per-distroROS_DOMAIN_IDbecause DDS multicast discovery crosses the docker bridge, without it a concurrent run's foreign talker doubles the listener's measured rate. - JSON Lines output (ROADMAP R6):
ROS_TOPIC_STATS_FORMAT=jsonlre-encodes each flush window as one JSON object per line (jsonlines.org) for sidecar exporters and log shippers, same emit gates, values and precisions as the text format, which stays the byte-identical default.ts_nsis a decimal string (int64 > 2^53 would lose digits as a JSON number; the OTLP/JSONtimeUnixNanoconvention), absent keys mean "not measured" (mirroring theJITTERhas-measured semantics),warnsare structured objects (topic_rate/topic_gap/node_missing) rather than preformatted strings, and user-controlled names are escaped per RFC 8259 so a hostile topic name cannot break the one-object-per-line framing. Unknown format values warn once on stderr and fall back to text.pulse-check/parseLogsniff the format per line, so jsonl logs keep full CI/watchdog gating (a non-probe file still exits 2, never a silent pass); golden-byte unit tests pin both formats.
Fixed¶
- The default output path was
/root/ssd2tb/logs/topic_freq.<pid>.log, the original field-test machine's SSD mount. On any machine without that directory a fresh install silently dropped every window after a single stderr warning. The default is now$TMPDIR/topic_freq.<pid>.log(/tmpwhenTMPDIRis unset, empty, or relative). Because the new default lives in a world-writable sticky directory under a pid-predictable name, its open now refuses symlinks (O_NOFOLLOW, CWE-379) and both open paths setO_CLOEXEC; an explicitROS_TOPIC_STATS_OUTPUT_FILEkeeps full symlink freedom.
Upgrade note¶
Deployments that read the old default location must either set
ROS_TOPIC_STATS_OUTPUT_FILE=/root/ssd2tb/logs/topic_freq.$$.log explicitly or start reading
from /tmp. Anyone setting the path explicitly (the documented practice) is unaffected.
[0.2.0] - 2026-08-02¶
Hardening release: two full test-first audit rounds (15 issues found, fixed and regression-tested) plus a review round on R1 (7 more), the Iron+ publish-side intra tracepoint, expected-rate alerting, a three-distro CI matrix, and benchmarks with error bars.
Added¶
- Expected-rate alerting (ROADMAP R1):
ROS_TOPIC_STATS_EXPECTEDspec file (documented YAML subset, zero-dependency parser), flush-timeWARN TOPIC/WARN NODElines with both lifecycle transients grace-skipped (attach ramp-up and the atexit window), and the no-ROSpulse-checkCLI (exit 0/1/2) for watchdogs/CI, with--skip-lastfor post-run gates. - One topic may carry several rules when they constrain different endpoints, so "the driver
publishes ~20 Hz and we receive ~20 Hz" is one spec; rules are deduplicated on
(topic,
side,transport) rather than topic name. - Publish-side intra-process rates on Iron+ (ROADMAP R3): the probe hooks
rclcpp_intra_publishand emits an additivePUB <topic> inter=… intra=…line (on Humble the tracepoint doesn't exist; receive-side intra still covers it). - CI matrix: blocking
industrial_cilanes on ros:humble / ros:jazzy / ros:kilted plus a non-blocking rolling lane, and three standalone core lanes (fast / TSan / ASan+UBSan). - Size-based output rotation (
ROS_TOPIC_STATS_MAX_BYTES, default 10 MiB,<path>.1). - Per-process default output path (
topic_freq.<pid>.log). - Stall visibility: proven receive endpoints emit an explicit
RECV … 0.000000line. - Idle-topic suppression by default with
ROS_PULSE_EMIT_IDLE=1opt-in. docs/: KNOWN_ISSUES tracker (15 issues, all fixed), ROADMAP, ALTERNATIVES (CARET / diagnostic_updater / rclpy positioning), DESIGN.
Fixed¶
- First window reported up to ~2× Hz (timer first-fire off-by-one + nominal instead of measured window denominator).
- Exit-time use-after-free: tracepoints firing during static destruction (leaky-singleton runtime + atexit final flush).
fork()without exec: child inherited a dead flush thread and never wrote counts (pthread_atfork quiescence + rwlock reinit + child re-arm).- Same-process pub+sub double-count: counters split into pub/recv × inter/intra buckets.
- Env parsing could
std::terminatethe host on malformed values (noexcept whole-token parsers with fallbacks). - Probe exported 74 symbols into every preloaded process; now exactly the 8
ros_trace_*interposers (visibility flags + linker version script, pinned by CI). - Thread-local hot-path cache: single-entry thrash (round 2), then stride-aliasing at
realistic allocator layouts (round 3), now 256 slots with a stride-breaking hash
(~0.3-1.2 ns/op; end-to-end cost bounded in
bench/RESULTS.md). transport: anyonside: pubsummed the two publish buckets, but onepublish()fires bothrclcpp_intra_publishandrcl_publishfor the same message on Iron+ whenever a non-intra subscriber is matched (or the QoS is TransientLocal, Jazzy+), so a healthy 50 Hz intra-process publisher read as 100 Hz and trippedmax_hz. Now the larger bucket; receive side keeps the sum, where the buckets are disjoint deliveries.- Expected-rate alerting judged the atexit window, so a graceful stop could log
WARN TOPIC … hz=0.000000on a perfectly healthy stack: a sub-period tail makescount/window_sa one-sample estimate. Both transients are now skipped; rates still logged.pulse-checkjudged that same window, which broke the post-run CI gate the README advertises; use--skip-lastthere. - A bad
ROS_TOPIC_STATS_EXPECTEDpath could stall or balloon the host insidercl_node_init: character devices never reached EOF, a FIFO blocked forever infopen, an oversize file was read whole (2.76 s and 2.05 GiB RSS for 2 GiB, per process), and a directory yielded empty text that parsed as a valid zero-rule spec, so alerting silently armed as a permanent no-op. Spec files are nowS_ISREG-gated, opened non-blocking and capped at 1 MiB, and a spec with no rules warns and disables. Shared withpulse-check, so--spec /dev/zerofails fast. - A leading UTF-8 BOM made a Windows-authored spec fail with an error visually identical to a misspelled key (the bytes render invisibly), silently disabling alerting.
- A key repeated inside one rule (
{min_hz: 1, min_hz: 2}) silently last-won instead of erroring.
Changed¶
- Benchmarks rewritten with paired, order-alternated trials and SEM error bars across all three distros: ≈ +2 % workload CPU at a harsh 4,900 msg/s stress (pooled +1.9 % ± 0.7 %), with controlled attribution; this replaces the earlier "within noise" claim.
- README: compatibility matrix, measured overhead figures, positioning vs CARET/eBPF/LTTng.
- The
[ros2_pulse] activebanner reportsspec=N topics, M nodes, orspec=nonefor every path that disables alerting: unset, unreadable, malformed, or no rules. pulse-checkdocuments that it sums receive rates across logs, so K subscriber processes on one topic report K× the publish rate: boundside: recvwithmin_hzfor liveness and putmax_hzonside: pub.
Upgrade note¶
A side: pub rule with the default transport: any now reports the true produce rate instead
of the inter+intra sum. On Iron+ with intra-process comms enabled, specs whose bounds were
tuned against the doubled figure will need their max_hz (and any min_hz above the real rate)
revisited. Humble is unaffected; it has no publish-side intra tracepoint.
[0.1.0] - 2026-07-01¶
Initial release.
Added¶
libros2_pulse.so: anLD_PRELOADprobe over the ROS 2 tracetools instrumentation layer.- Per-topic frequency (Hz) for inter-process (via
rcl_publish) and intra-process (viacallback_start'sis_intra_processflag) traffic, plus active-node listing. - Pure-C++ core (
TopicRegistry,Timer) with no ROS dependency; lock-free hot path (per-endpoint relaxed atomics + thread-local cache); lazy callback→topic resolution. - Rolling file output in a
TOPIC/RECV/NODEformat; configurable viaROS_TOPIC_STATS_OUTPUT_FILEandROS_TOPIC_STATISTICS_PUBLISH_PERIOD. - Unit tests (GTest) and integration tests (launch/pytest): 13 tests.
- Benchmark harness (
bench/) comparing against eBPF-uprobe and LTTng/ros2_tracing, with an interleaved-trials overhead measurement and a hot-path microbench. - On-Orin field-test kit (
test/orin/).
Validated¶
- ROS 2 Humble, FastRTPS and CycloneDDS (middleware-agnostic; hooks above the DDS vendor).
- CPU overhead within measurement noise at ~4900 msg/s across 53 mixed topics.