From f9c9496d090474ff9f87c78277c071167eef79e2 Mon Sep 17 00:00:00 2001 From: Erling Rennemo Jellum Date: Tue, 15 Aug 2023 18:47:15 +0200 Subject: [PATCH] Update tracing docs after moving tracing utils --- packages/documentation/copy/en/reference/Tracing.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/documentation/copy/en/reference/Tracing.md b/packages/documentation/copy/en/reference/Tracing.md index 715becf6f..8cffff6f5 100644 --- a/packages/documentation/copy/en/reference/Tracing.md +++ b/packages/documentation/copy/en/reference/Tracing.md @@ -104,12 +104,13 @@ target C { This will result in the trace file being named `Bar.lft`, regardless of the name of the `.lf` file. -The trace file is a binary file. It is not human readable. There are two utilities for reading it: +The trace file is a binary file. It is not human readable. There are three utilities for reading it: - `trace_to_csv`: This program creates a text file with one line per traced event in comma-separated list format. - `trace_to_chrome`: This program creates a text file in JSON format that is suitable for reading into the same Google Trace Viewer, which runs in Chrome, as used above in C++ tracing. +- `trace_to_influxdb` : This program will send the traced event to a running InfluxDB database server. -These two programs are located in `lingua_franca/util/tracing`. Running `make install` in that directory will put executables into `lingua_franca/bin`, the same directory that houses `lfc`, the compiler. +These two programs are located in reactor-c at `lingua-franca/core/src/main/resources/lib/c/reactor-c/util/tracing`. Running `sudo make install` in that directory will put executables into `usr/local/bin`. Consider for example the [ThreadedThreaded.lf](https://github.com/lf-lang/lingua-franca/blob/master/test/C/src/concurrent/ThreadedThreaded.lf) test, which executes a number of heavyweight computations in parallel on multiple cores. If you enable tracing as shown above and run the program, a `ThreadedTheread.lft` file will appear. Running