Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356387

Summary: Execute binary multiple times for improved sample counts
Product: z_Archived Reporter: Roland Grunberg <rgrunber>
Component: LinuxToolsAssignee: Roland Grunberg <rgrunber>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jjohnstn, kksebasti
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Roland Grunberg CLA 2011-08-31 14:55:47 EDT
The current behaviour of Eclipse Oprofile is to load the oprofile module if not loaded, set up opcontrol, and run opcontrol. The binary is run exactly once, followed by collecting any profiling information with opreport.

Since Oprofile is a statistical profiler, multiple runs of a binary would benefit in collecting more samples (especially in the case of binaries that produce few or no samples).

This could be an option in the Oprofile configuration of a project. The only change in behaviour would be that the binary being profiled could be run multiple times, before data is collected.
Comment 1 Andrew Overholt CLA 2011-08-31 15:52:11 EDT
This is a fine idea.
Comment 2 Roland Grunberg CLA 2013-02-06 16:28:44 EST
This has been reviewed here https://git.eclipse.org/r/#/c/10204/ and is in master. Marking this bug as closed (fixed). Thanks to Rafael for doing this.