# magic-trace - 프로세스 동작을 고해상도로 추적하는 도구

> Clean Markdown view of GeekNews topic #6494. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=6494](https://news.hada.io/topic?id=6494)
- GeekNews Markdown: [https://news.hada.io/topic/6494.md](https://news.hada.io/topic/6494.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2022-05-05T09:36:01+09:00
- Updated: 2022-05-05T09:36:01+09:00
- Original source: [github.com/janestreet](https://github.com/janestreet/magic-trace)
- Points: 7
- Comments: 0

## Topic Body

- Intel Processor Trace를 사용. 샘플링이 아닌 High-Resolution Trace   
- 2%~10% 정도의 오버헤드   
- 모든 함수 호출을 약 40ns 안에 추적   
- 콜스택 타임라인을 10ms 안에 렌더링   
- 지원 환경   
  - Perf에 의존 하므로 Linux만 지원  
  - 인텔 Skylake 이후의 CPU들  
  - x86_64   
  - OCaml, C, C++, Rust, Python(C Frame만 디코드)  
    - Exception은 현재 지원하지 않음. 지원예정   
  - KVM with Kernel 5.0+

## Comments



_No public comments on this page._
