0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 00:31:02 +08:00

Update README.md

This commit is contained in:
Sergey Yagovtsev 2017-03-01 13:20:51 +03:00 committed by GitHub
parent 3640bae1c8
commit c9f69f7b25

View File

@ -15,6 +15,7 @@
- [Collect blocks](#collect-blocks)
- [Collect via network](#collect-via-network)
- [Collect via file](#collect-via-file)
- [Note about context-switch](#note-about-context-switch)
4. [Build](#build)
- [Linux](#linux)
- [Windows](#windows)
@ -151,6 +152,17 @@ int main()
}
```
### Note about context-switch
To capture a thread context-switch event you need:
- On Windows: run profiling application "as administrator"
- On linux: you can run special `systemtap` script with root privileges as follow (example on Fedora):
```bash
#stap -o /tmp/cs_profiling_info.log scripts/context_switch_logger.stp name APPLICATION_NAME
```
APPLICATION_NAME - name of profiling application
# Build
## Prerequisites