From b85a8a62a2493d70a32d269a0bdecf49134e0360 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 12 Jul 2018 13:27:02 +0200 Subject: [PATCH] Document TRACY_ON_DEMAND macro. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3db31910..2d7fd8cb 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,8 @@ In the default configuration tracy is disabled. To enable it, add a `TRACY_ENABL If you want to profile a short-lived application, add a `TRACY_NO_EXIT` define. In this configuration tracy will not exit until an incoming connection is made, even if the application has already finished. +If you don't want to perform a complete application life-time capture, you may define a `TRACY_ON_DEMAND` macro, which will enable profiling only when there's an incoming connection from the server. + On Unix make sure you are linking your application with libpthread and libdl. #### Running the server