mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-23 17:20:48 +00:00
Add an API to read external target memory.
ReadExternalTargetMemory reads bytes out of the target's address space: process_vm_readv for live bytes (gated like ptrace access), falling back to the target's on-disk image located by scanning /proc/<pid>/maps directly - the caller runs while the symbol thread may be rebuilding the shared image cache on refresh.
This commit is contained in:
@@ -93,6 +93,8 @@ bool InitExternalTarget( pid_t targetPid );
|
||||
uint32_t GetExternalTargetPid();
|
||||
const char* GetExternalTargetName();
|
||||
uint64_t GetExternalTargetExeTime();
|
||||
|
||||
size_t ReadExternalTargetMemory( uint64_t addr, uint32_t size, char* buf );
|
||||
#endif
|
||||
|
||||
#ifdef TRACY_DEBUGINFOD
|
||||
|
||||
Reference in New Issue
Block a user