Skip to content

Commit

Permalink
python: Fixed hotspot symbol resolution in perf.data.
Browse files Browse the repository at this point in the history
Previously hotspot incorrectly resolved symbols, mixing up them and making the performance analysis incorrect.
  • Loading branch information
levy committed Nov 26, 2024
1 parent 9681876 commit 98c68b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/inet/test/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
def generate_profile_report(simulation_project=None, output_file="perf.data", **kwargs):
if simulation_project is None:
simulation_project = get_default_simulation_project()
simulation_task_results = run_simulations(simulation_project=simulation_project, mode="profile", prepend_args=["perf", "record", "-g", "-o", output_file], **kwargs)
simulation_task_results = run_simulations(simulation_project=simulation_project, mode="profile", prepend_args=["perf", "record", "-g", "--call-graph", "dwarf", "-o", output_file], **kwargs)
working_directory = simulation_task_results.results[0].task.simulation_config.working_directory
return simulation_project.get_relative_path(os.path.join(working_directory, output_file))

Expand Down

0 comments on commit 98c68b7

Please sign in to comment.