Redact secret source locations from .utracy profiler files.
Defaults are for the Goonstation codebase.
See:
https://github.com/Dimach/rtracy
https://github.com/ParadiseSS13/byond-tracy
Drag and drop your .utracy file on the .exe, or
utracy-redact.exe <INPUT> [OPTIONS]
-o, --output <PATH>- write to a specific path (default:<stem>.redacted.utracynext to input)--in-place- overwrite the input file atomically via temp file--dry-run- show what would be redacted without writing--file-marker <SUBSTR>- match srclocs whose file path contains this substring (case-insensitive, repeatable, default:code_secret)--fn-marker <SUBSTR>- match srclocs whose function name contains this substring (case-insensitive, repeatable, default:secret)
# Redact and generate myfile.redacted.utracy
utracy-redact.exe myfile.utracy
# Dry-run to see what gets redacted
utracy-redact.exe myfile.utracy --dry-run
# Overwrite input in-place
utracy-redact.exe myfile.utracy --in-place
# Custom markers
utracy-redact.exe myfile.utracy --file-marker secret_code --fn-marker internal