Skip to content

Small utility for redacting source locations from `.utracy` files

License

Notifications You must be signed in to change notification settings

spacestation13/utracy-redact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

utracy-redact

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

Usage

Drag and drop your .utracy file on the .exe, or

utracy-redact.exe <INPUT> [OPTIONS]

Options

  • -o, --output <PATH> - write to a specific path (default: <stem>.redacted.utracy next 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)

Example

# 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

License

GPL-3.0

About

Small utility for redacting source locations from `.utracy` files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages