tbarbette / npf

Network Performance Framework: easy-to-use experiment manager with automated testing, result collection, and graphing
GNU General Public License v3.0
40 stars 15 forks source link

Allow to generate variables at graph-time #4

Closed tbarbette closed 2 years ago

tbarbette commented 4 years ago

Something like PERCENT=(HIT)/(HIT+MISS) but without rerunning the tests, as opposed to what pyexit allows.

Proposed by @aliireza

tbarbette commented 4 years ago

Maybe simply pass a "--graph-script" and/or "--graph-script-file" that works as pyexit does?

tbarbette commented 2 years ago

This is now possible with the %pypost section, allowing to create in python some graph-time generated values, eg :

%pypost RESULTS['PERCENT'] = RESULTS['HIT'] / ( RESULTS['HIT'] + RESULTS['MISS'] )