From: Philippe Proulx Date: Thu, 23 Oct 2014 17:58:57 +0000 (-0400) Subject: tracing-your-own-user-application: lttng view before destroy X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8eb0513dbf7b21442f9aebad439b55943493025f;p=lttng-docs.git tracing-your-own-user-application: lttng view before destroy Signed-off-by: Philippe Proulx --- diff --git a/contents/getting-started/tracing-your-own-user-application.md b/contents/getting-started/tracing-your-own-user-application.md index 064e3c2..f899e7d 100644 --- a/contents/getting-started/tracing-your-own-user-application.md +++ b/contents/getting-started/tracing-your-own-user-application.md @@ -184,11 +184,10 @@ lttng start Go back to the running `hello` application and press Enter. All `tracepoint()` calls will be executed and the program will finally exit. -Stop tracing and destroy the tracing session: +Stop tracing:
 lttng stop
-lttng destroy my-userspace-session
 
Done! You may use `lttng view` to list the recorded events. This command @@ -211,5 +210,13 @@ should output something like: [18:10:27.684357978] (+0.000014460) hostname hello_world:my_first_tracepoint: { cpu_id = 0 }, { my_string_field = "x^2", my_integer_field = 16 } ~~~ +When you're done, you may destroy the tracing session, which does _not_ +destroy the generated trace files, leaving them available for further +analysis: + +
+lttng destroy my-userspace-session
+
+ The next section presents other alternatives to view and analyze your LTTng traces.