ViTE parses a text file in Pajé or OTF format to visualize execution traces:
This does not provide a library to instrument your code and generate these files. You need to instrument your code yourself to generate the trace of events you want to see in your program. See here for more informations on tools that can generate traces. ViTE will help you to respect the Pajé format, show you the sequence of event of your program and give you statistics on these events.
Just look at a simple example: philosophers.c which generates a Pajé trace. philosophersOTF.c generates an OTF trace. These two files are an implementation of the dining philosophers problem with semaphores. To compile it just use the following command:
Finally, just execute the program:
We can observe the different states of the philosophers (think: grey, hungry: red, eat: blue) and the lock set on forks. This example does not show how to display communication.