From bae66a2ad90d5cf33bad8aa53030a1ec6a210dc8 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 6 Oct 2026 22:03:28 +0200 Subject: [PATCH] Add labels to the achievement admonitions. --- profiler/src/achievements/100Million.md | 2 ++ profiler/src/achievements/InstrumentationIntro.md | 2 ++ profiler/src/achievements/SamplingIntro.md | 2 ++ 3 files changed, 6 insertions(+) diff --git a/profiler/src/achievements/100Million.md b/profiler/src/achievements/100Million.md index cbbae56f..d77dd4ec 100644 --- a/profiler/src/achievements/100Million.md +++ b/profiler/src/achievements/100Million.md @@ -7,6 +7,8 @@ Capturing a long-running profile trace is easy. Need to profile an hour of your Note that it doesn't make much sense to instrument every little function you might have. The cost of the instrumentation itself will be higher than the cost of the function in such a case. > [!TIP] +> **Tip** +> > Keep in mind that the more zones you have, the more memory and CPU time the profiler will use. Be careful not to run out of memory. > > To capture 100 million zones, you will need approximately 4 GB of RAM. diff --git a/profiler/src/achievements/InstrumentationIntro.md b/profiler/src/achievements/InstrumentationIntro.md index 59df7cbf..e4a3a216 100644 --- a/profiler/src/achievements/InstrumentationIntro.md +++ b/profiler/src/achievements/InstrumentationIntro.md @@ -17,6 +17,8 @@ void SomeFunction() Now, when you profile your application, you will see a new zone appear on the timeline for each call to the function. This allows you to see how much time is spent in each call and how many times the function is called. > [!NOTE] +> **Note** +> > The `ZoneScoped` macro is just one of the many macros provided by Tracy. See the documentation for more information. The above description applies to C++ code, but things are done similarly in other programming languages. Refer to the documentation for your language for more information. diff --git a/profiler/src/achievements/SamplingIntro.md b/profiler/src/achievements/SamplingIntro.md index 9288d3f0..5b6d24a3 100644 --- a/profiler/src/achievements/SamplingIntro.md +++ b/profiler/src/achievements/SamplingIntro.md @@ -7,4 +7,6 @@ While instrumentation requires changes to your code, sampling does not. However, Sampling is automatic on Linux. On Windows, you must run the profiled application as an administrator for it to work. > [!WARNING] +> **Warning** +> > Depending on your system configuration, some additional steps may be required. Please refer to the user manual for more information.