Skip to content

Commit

Permalink
Tracy plots default to snapping
Browse files Browse the repository at this point in the history
  • Loading branch information
dedmen committed Oct 28, 2024
1 parent 6d3ffb3 commit 2f97d46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/FAllocHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ extern "C" {
void afterAlloc() {
auto tracyProf = std::reinterpret_pointer_cast<AdapterTracy>(GProfilerAdapter);
tracyProf->setCounter(allocalloctmp->_allocName, (int64_t)allocalloctmp->allocated_count);
//TracyAllocN(ptr, size, allocalloctmp->_allocName)
}

void afterFree() {
auto tracyProf = std::reinterpret_pointer_cast<AdapterTracy>(GProfilerAdapter);
tracyProf->setCounter(freealloctmp->_allocName, (int64_t)freealloctmp->allocated_count);
//TracyFreeN(ptr, allocalloctmp->_allocName)
}


Expand All @@ -49,6 +51,13 @@ void FAllocHook::init() {

auto FreeF = poolDealloc; // We inject after the null check
engineFree = hooks.placeHookTotalOffs(FreeF + 0x9, reinterpret_cast<uintptr_t>(engineFreeRedir))+1;

//for (rv_pool_allocator* alloc : intercept::client::host::functions.get_engine_allocator()->_poolAllocs)
//{
// TracyPlotConfig(alloc->_allocName, tracy::PlotFormatType::Number, true, true, 0);
//}


//
//__debugbreak();
#endif
Expand Down
2 changes: 1 addition & 1 deletion tracy
Submodule tracy updated 1 files
+2 −2 server/TracyWorker.cpp

0 comments on commit 2f97d46

Please sign in to comment.