Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 1.55 KB

File metadata and controls

63 lines (44 loc) · 1.55 KB

trace-caller

Print the call stack and process tree that invoked your CLI command for debugging complex build systems

Features

  • Display complete parent process chain from current process to init/system
  • Show working directory for each process in the chain
  • Print full command line with arguments for each parent process
  • Highlight environment variable differences between process levels
  • Filter output by process name pattern (e.g., only show make/bash/sh)
  • Limit depth of process tree traversal with --depth flag
  • Show process IDs and parent process IDs for each level
  • Colorized output with tree-style formatting for readability
  • Cross-platform support for Linux and macOS
  • Minimal startup overhead (< 10ms) for use in tight loops

How to Use

Use this project when you need to:

  • Quickly solve problems related to trace-caller
  • Integrate rust functionality into your workflow
  • Learn how rust handles common patterns

Installation

# Clone the repository
git clone https://github.com/KurtWeston/trace-caller.git
cd trace-caller

# Install dependencies
cargo build

Usage

cargo run

Built With

  • rust

Dependencies

  • clap
  • colored
  • sysinfo

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.