mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-26 16:11:02 +08:00
Update README.md
This commit is contained in:
parent
3640bae1c8
commit
c9f69f7b25
12
README.md
12
README.md
@ -15,6 +15,7 @@
|
|||||||
- [Collect blocks](#collect-blocks)
|
- [Collect blocks](#collect-blocks)
|
||||||
- [Collect via network](#collect-via-network)
|
- [Collect via network](#collect-via-network)
|
||||||
- [Collect via file](#collect-via-file)
|
- [Collect via file](#collect-via-file)
|
||||||
|
- [Note about context-switch](#note-about-context-switch)
|
||||||
4. [Build](#build)
|
4. [Build](#build)
|
||||||
- [Linux](#linux)
|
- [Linux](#linux)
|
||||||
- [Windows](#windows)
|
- [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
|
# Build
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
Loading…
x
Reference in New Issue
Block a user