profiling build fix
This commit is contained in:
parent
179a6c3588
commit
5ec253b4aa
10
.natvis
10
.natvis
@ -2,19 +2,19 @@
|
|||||||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||||
|
|
||||||
<Type Name = "string">
|
<Type Name = "string">
|
||||||
<DisplayString Condition="text != 0">{text, [len] s} ({len})</DisplayString>
|
<DisplayString Condition="text != 0">({len}) {text, [len] s}</DisplayString>
|
||||||
<DisplayString Condition="text == 0"><NULL></DisplayString>
|
<DisplayString Condition="text == 0"><NULL></DisplayString>
|
||||||
<StringView>text, [len] s</StringView>
|
<StringView>text, [len] s</StringView>
|
||||||
</Type>
|
</Type>
|
||||||
|
|
||||||
<Type Name = "string16">
|
<Type Name = "string16">
|
||||||
<DisplayString Condition="text != 0">{text, [len] su} ({len})</DisplayString>
|
<DisplayString Condition="text != 0">({len}) {text, [len] su}</DisplayString>
|
||||||
<DisplayString Condition="text == 0"><NULL></DisplayString>
|
<DisplayString Condition="text == 0"><NULL></DisplayString>
|
||||||
<StringView>text, [len] su</StringView>
|
<StringView>text, [len] su</StringView>
|
||||||
</Type>
|
</Type>
|
||||||
|
|
||||||
<Type Name = "arena">
|
<Type Name = "arena">
|
||||||
<DisplayString>pos: {pos}, capacity: [{capacity} / {reserved}]</DisplayString>
|
<DisplayString>pos: {pos}, committed: [{committed} / {reserved}]</DisplayString>
|
||||||
<Expand>
|
<Expand>
|
||||||
<Item Name="Data">base, [pos] s</Item>
|
<Item Name="Data">base, [pos] s</Item>
|
||||||
<Item Name="Data (Extended)">base, [pos+100] s</Item>
|
<Item Name="Data (Extended)">base, [pos+100] s</Item>
|
||||||
@ -41,13 +41,13 @@
|
|||||||
</Type>
|
</Type>
|
||||||
|
|
||||||
<Type Name = "String">
|
<Type Name = "String">
|
||||||
<DisplayString Condition="text != 0">{text, [len] s} ({len})</DisplayString>
|
<DisplayString Condition="text != 0">({len}) {text, [len] s}</DisplayString>
|
||||||
<DisplayString Condition="text == 0"><NULL></DisplayString>
|
<DisplayString Condition="text == 0"><NULL></DisplayString>
|
||||||
<StringView>text, [len]</StringView>
|
<StringView>text, [len]</StringView>
|
||||||
</Type>
|
</Type>
|
||||||
|
|
||||||
<Type Name = "Arena">
|
<Type Name = "Arena">
|
||||||
<DisplayString>pos: {pos}, capacity: [{capacity} / {reserved}]</DisplayString>
|
<DisplayString>pos: {pos}, committed: [{committed} / {reserved}]</DisplayString>
|
||||||
<Expand>
|
<Expand>
|
||||||
<Item Name="Data">base, [pos] s</Item>
|
<Item Name="Data">base, [pos] s</Item>
|
||||||
<Item Name="Data (Extended)">base, [pos+100] s</Item>
|
<Item Name="Data (Extended)">base, [pos+100] s</Item>
|
||||||
|
|||||||
13
build.c
13
build.c
@ -828,8 +828,17 @@ void OnBuild(StringList cli_args)
|
|||||||
D_TagList src_input_files = { 0 };
|
D_TagList src_input_files = { 0 };
|
||||||
{
|
{
|
||||||
D_Tag src_dir = D_TagFromPath(&arena, Lit("src"), D_TagKind_Dir);
|
D_Tag src_dir = D_TagFromPath(&arena, Lit("src"), D_TagKind_Dir);
|
||||||
D_TagList src_dir_files = D_GetDirContents(&arena, src_dir);
|
D_TagList src_files = D_GetDirContents(&arena, src_dir, false);
|
||||||
for (D_TagListNode *n = src_dir_files.first; n; n = n->next) {
|
|
||||||
|
if (arg_profiling) {
|
||||||
|
D_Tag tracy_src_dir = D_TagFromPath(&arena, Lit("src/third_party/tracy"), D_TagKind_Dir);
|
||||||
|
D_TagList tracy_src_files = D_GetDirContents(&arena, tracy_src_dir, true);
|
||||||
|
for (D_TagListNode *n = tracy_src_files.first; n; n = n->next) {
|
||||||
|
D_TagListAppend(&arena, &src_files, n->tag);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (D_TagListNode *n = src_files.first; n; n = n->next) {
|
||||||
Bool ignore = true;
|
Bool ignore = true;
|
||||||
|
|
||||||
D_Tag file = n->tag;
|
D_Tag file = n->tag;
|
||||||
|
|||||||
@ -8,7 +8,7 @@ taskkill /im tracy.exe /f 2> nul
|
|||||||
start %UserProfile%\Home\apps\tracy\capture.exe -o .tracy -f
|
start %UserProfile%\Home\apps\tracy\capture.exe -o .tracy -f
|
||||||
|
|
||||||
echo Launching app...
|
echo Launching app...
|
||||||
build\bin\powerplay.exe
|
build\clang-user-profiling\bin\powerplay.exe
|
||||||
|
|
||||||
if NOT %errorlevel% == 0 (
|
if NOT %errorlevel% == 0 (
|
||||||
echo.
|
echo.
|
||||||
|
|||||||
@ -931,7 +931,7 @@ INTERNAL SYS_THREAD_ENTRY_POINT_FUNC_DEF(sprite_evictor_thread_entry_point, arg)
|
|||||||
|
|
||||||
/* Check usage time */
|
/* Check usage time */
|
||||||
#if RESOURCE_RELOADING
|
#if RESOURCE_RELOADING
|
||||||
/* Only check conditional if * RESOURCE_RELOADING is enabled,
|
/* Only check conditional if RESOURCE_RELOADING is enabled,
|
||||||
* since over-budget is assumed to be * true otherwise */
|
* since over-budget is assumed to be * true otherwise */
|
||||||
if (cache_over_budget)
|
if (cache_over_budget)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user