mirror of https://github.com/VLSIDA/OpenRAM.git
Add profile scripts
This commit is contained in:
parent
537e0689fb
commit
a96f492d0a
|
|
@ -0,0 +1,5 @@
|
||||||
|
import pstats
|
||||||
|
p = pstats.Stats('profile.dat')
|
||||||
|
p.strip_dirs()
|
||||||
|
p.sort_stats('cumulative')
|
||||||
|
p.print_stats(50)
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
python3 -m cProfile -o profile.dat ./openram.py example_config_scn4m_subm.py -v
|
||||||
|
echo "Run view_profile.py to view results"
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
import pstats
|
||||||
|
p = pstats.Stats(‘profile.dat’)
|
||||||
|
p.strip_dirs()
|
||||||
|
p.sort_stats(‘cumulative’)
|
||||||
|
p.print_stats(50)
|
||||||
|
|
||||||
Loading…
Reference in New Issue