moiri / streamix-c

compiler for Streamix
GNU General Public License v2.0
0 stars 0 forks source link

Profiler Keyword #13

Closed moiri closed 5 years ago

moiri commented 5 years ago

In order to allow a profiler to be connected to every net in a Streamix network a new keywork must be introduced:

The syntax profiler.<custom> should achieve this. The keyword profiler serves as an instantiation of a special routing node which connects to all profiler ports of all nets. <costom> can be an instance of any box implementation which takes the profiler data as input.

moiri commented 5 years ago

An alternative, which I tend to like better, would be to use the keyword profiler instead of the port mode. This would be sufficient to indicate which port of the profiler backend is connected to the profiler:

M = box m( up in x, down out x )
L = box l( out x )
R = box r( in x )
Profiler = extern box smx_mongo( profiler data, in ui open )

connect L.(M!M).R|Profiler