|
|
|
---
|
|
|
|
title: Profilage de Code
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Code profilers
|
|
|
|
|
|
|
|
In this Wiki, we will provide a methodology to install and run some code profilers. This has been tested on a specific Conda environment.
|
| ... | ... | @@ -117,16 +112,16 @@ make |
|
|
|
make install
|
|
|
|
```
|
|
|
|
|
|
|
|
### Restoring the Conda library
|
|
|
|
## Profile
|
|
|
|
|
|
|
|
Go to the `$CONDA_PREFIX/lib` folder and type:
|
|
|
|
Once everything is installed, you will be able to compile your code using the profiler tools.
|
|
|
|
|
|
|
|
But before starting, you might need to add the following line before:
|
|
|
|
|
|
|
|
```
|
|
|
|
mv save-libbfd.a libbfd.a
|
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib
|
|
|
|
```
|
|
|
|
|
|
|
|
## Profile
|
|
|
|
|
|
|
|
### Profile with TAU
|
|
|
|
|
|
|
|
To profile with TAU, first define the proper Makefile to use and eventually additional tau options:
|
| ... | ... | |
| ... | ... | |