Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ktactac-ornl committed Oct 22, 2024
1 parent e696e85 commit a619cbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It monitors CPU and RAM usage, and reports the time span of each algorithm (curr

To profile the `SNSPowderReduction.py` workflow:
```
python SNSPowderReduction.py & python path/to/mantid-profiler/mantid-profiler.py $!
python SNSPowderReduction.py & python path/to/mantid-profiler/src/mantidprofiler/mantidprofiler.py $!
```
The script attaches to the last spawned process, so you can also use the profiler if you are working with `MantidPlot`:
```
Expand Down Expand Up @@ -41,6 +41,7 @@ You can interact with a demo profile [here](http://www.nbi.dk/~nvaytet/SNSPowder
- `-h`, `--help` show this help message and exit
- `--outfile OUTFILE` name of output html file (default: `profile.html`)
- `--infile INFILE` name of input file containing algorithm timings (default: `algotimeregister.out`)
-
- `--logfile LOGFILE` name of output file containing process monitor data (default: `mantidprofile.txt`)
- `--diskfile DISKFILE` name of output file containing process disk usage data (default: `mantiddisk.txt`)
- `--interval INTERVAL` how long to wait between each sample (in seconds). By default the process is sampled as often as possible. (default: None)
Expand Down
2 changes: 1 addition & 1 deletion src/mantidprofiler/algorithm_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def apply_multiple_trees(trees, check, func):
def parseLine(line):
res = {
"thread_id": re.search("ThreadID=([0-9]*)", line)[1],
"name": re.search("AlgorithmName=(.*)", line)[1],
"name": re.search("AlgorithmName=([a-zA-Z]*)", line)[1],
"start": int(re.search("StartTime=([0-9]*)", line)[1]),
"finish": int(re.search("EndTime=([0-9]*)", line)[1]),
}
Expand Down

0 comments on commit a619cbc

Please sign in to comment.