plasma-umass / coz

Coz: Causal Profiling
Other
4.03k stars 160 forks source link

Optimize total programm run time #199

Closed freemin7 closed 2 years ago

freemin7 commented 2 years ago

Assuming i have a particular program with particular inputs with a total run-time want to optimize

./executeable work_file

Do i really need to recompile the executable and add a progress point before the successful exit and loop the executetable using something like bash

coz run --- bash -c "for i in {1..10000}; do ./executeable work_file; done;" 

Or is there a more elegant way?

emeryberger commented 2 years ago

You could of course also have the code execute a loop comprising the whole program, but if you don't want to do that, what you propose would work. Ideally you'd have some individual thing that you really want to have happen more frequently (so you'd place a throughput progress point) or a begin-end pair which you'd like to take less time (which would call for latency progress points).

freemin7 commented 2 years ago

If i want to optimize total program run-time, would i need evenly distributed progress points throughout the program to ensure drawing the correct conclusions?

emeryberger commented 2 years ago

Let's move this to discussions.

freemin7 commented 2 years ago

Where do these happen? Nevermind. Found them.