[lttng-dev] bt2 python - accessing component instances added to graph

Rocky Dunlap dunlap at ucar.edu
Mon Mar 30 01:24:37 EDT 2020


I noticed that when I add a component to a bt2 graph, e.g.:

sink = g.add_component(SinglePETSink, "sink"+str(idx))

The return value "sink" is not actually an instance of SinglePETSink (which
has been defined as a local Python class).  How do I get to the instance of
SinglePETSink that was created?

Rocky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20200329/da0c1254/attachment.htm>


More information about the lttng-dev mailing list