mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-23 09:10:51 +00:00
Add a user manual achievement.
This commit is contained in:
@@ -214,6 +214,7 @@ Embed(PROFILER_FILES TextInstrumentationStatistics src/achievements/Instrumentat
|
||||
Embed(PROFILER_FILES TextInstrumentFrames src/achievements/InstrumentFrames.md TEXT)
|
||||
Embed(PROFILER_FILES TextIntro src/achievements/Intro.md TEXT)
|
||||
Embed(PROFILER_FILES TextLoadTrace src/achievements/LoadTrace.md TEXT)
|
||||
Embed(PROFILER_FILES TextManual src/achievements/Manual.md TEXT)
|
||||
Embed(PROFILER_FILES TextSamplingIntro src/achievements/SamplingIntro.md TEXT)
|
||||
Embed(PROFILER_FILES TextSaveTrace src/achievements/SaveTrace.md TEXT)
|
||||
|
||||
|
||||
@@ -7,4 +7,3 @@ Let's start our adventure by instrumenting your application and connecting it to
|
||||
3. Define `TRACY_ENABLE` in your build configuration, for the whole application. Do not do it in a single source file because it won't work.
|
||||
4. Start your application, and * Connect* to it with the profiler.
|
||||
|
||||
Please refer to the [user manual](https://github.com/wolfpld/tracy/releases) for more details.
|
||||
|
||||
10
profiler/src/achievements/Manual.md
Normal file
10
profiler/src/achievements/Manual.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# Read the manual
|
||||
|
||||
Tracy ships with a built-in user manual that describes all of its features. You can open it by clicking the * Manual* icon in the top toolbar of the profiler window.
|
||||
|
||||
It's an alternative to external documentation — always available offline, and it covers everything from basic instrumentation to advanced sampling and memory profiling.
|
||||
|
||||
> [!TIP]
|
||||
> **Tip**
|
||||
>
|
||||
> When you're unsure how to do something, the manual is the quickest way to find out. Keep it handy while you explore.
|
||||
@@ -810,6 +810,7 @@ static void DrawContents()
|
||||
if( ImGui::Button( ICON_FA_BOOK " Manual" ) )
|
||||
{
|
||||
s_manualWindow.Show() = true;
|
||||
if( tracy::s_config.achievements ) s_achievements->Achieve( "manual" );
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if( ImGui::Button( ICON_FA_EARTH_AMERICAS " Web" ) )
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "data/TextInstrumentationStatistics.hpp"
|
||||
#include "data/TextIntro.hpp"
|
||||
#include "data/TextLoadTrace.hpp"
|
||||
#include "data/TextManual.hpp"
|
||||
#include "data/TextSamplingIntro.hpp"
|
||||
#include "data/TextSaveTrace.hpp"
|
||||
|
||||
@@ -130,9 +131,16 @@ AchievementItem ai_globalSettings = {
|
||||
.text = Unpack( TextGlobalSettings )
|
||||
};
|
||||
|
||||
AchievementItem ai_manual = {
|
||||
.id = "manual",
|
||||
.name = "Read the manual",
|
||||
.text = Unpack( TextManual )
|
||||
};
|
||||
|
||||
AchievementItem* ac_achievementsIntroItems[] = {
|
||||
&ai_connectToServer,
|
||||
&ai_globalSettings,
|
||||
&ai_manual,
|
||||
nullptr
|
||||
};
|
||||
|
||||
|
||||
@@ -769,6 +769,7 @@ bool View::DrawImpl()
|
||||
if( m_worker.GetZoneCount() > 100 * 1000 * 1000 ) Achieve( "100million" );
|
||||
if( m_worker.GetCallstackSampleCount() > 0 ) Achieve( "samplingIntro" );
|
||||
if( m_worker.AreFramesUsed() ) Achieve( "instrumentFrames" );
|
||||
if( m_manualWindow.Show() ) Achieve( "manual" );
|
||||
}
|
||||
|
||||
Attention( m_attnWorking );
|
||||
|
||||
Reference in New Issue
Block a user