Skip to content
Snippets Groups Projects
Commit 4c78e52c authored by Christoph Hasse's avatar Christoph Hasse :cartwheel_tone1:
Browse files

more python 3 stuff + extra flag for vtune to avoid segfault

parent e8cce446
No related branches found
No related tags found
1 merge request!179Fix VTune in the throughput tests
Pipeline #2668444 passed
......@@ -74,7 +74,7 @@ def main(results_dir, listOfLogs, hltlabel, throughput, ht_file, heaptrack):
'--minwidth', '2', '--width', '1600', '--countname', 'Allocations'], stdin=inp, stdout=out)
## reads the text logs and extracts timing shares of different steps of the algorithm
import readTimingTable
from MooreTests import readTimingTable
timingTable = readTimingTable.readTimings(hltlabel, listOfLogs)
# last entry in the sorted list will always be the total time so let's remove that one
......@@ -186,7 +186,7 @@ if __name__ == '__main__':
parser.add_argument(
'--heaptrack',
type=str,
required=True,
required=False,
help='Enable heaptrack profiling by providing path to executable')
args = parser.parse_args()
......
......@@ -88,7 +88,7 @@ def parseTimingTable(log_fn):
df = df.drop(columns=["Unnamed: 0", "Unnamed: 5"])
df.columns = ["name", "count", "total_time", "average_time"]
df.set_index("name")
df.name = map(lambda x: x.strip('"'), df.name)
df.name = df.name.apply(lambda x: x.strip('"'))
return df
......
......@@ -202,7 +202,7 @@ options.input_files = {inputs!r}
subprocess.Popen(["sleep", "60"]).wait()
prof_cmd = [
"amplxe-cl", "-collect hotspots", "-d", "60", "-target-pid=",
"amplxe-cl", "-run-pass-thru=--no-altstack", "-collect hotspots", "-d", "60", "-target-pid=",
str(process.pid), "-r", "profile_out"
]
# At the end of collection the executable above does some preproscessing,
......@@ -252,7 +252,7 @@ options.input_files = {inputs!r}
logging.info("Making profile plots")
for s in args.options:
hlt_label = "HLT1" if "hlt1" in s.lower() else "HLT2"
import make_profile_plots
from MooreTests import make_profile_plots
make_profile_plots.main("profile_out", [log_filename], hlt_label,
parsed_throughput, ht_file, args.heaptrack)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment