summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-03-27 19:56:55 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-03-27 19:56:55 -0700
commit5e57a1502ec05156d4455b91e452b38c0dc482b4 (patch)
tree890c7fbb834c824214df36395df362b00e8f12da /share
parent788efdc3f861eb83bc579de8eae800eb8ba848fa (diff)
downloadtxr-5e57a1502ec05156d4455b91e452b38c0dc482b4.tar.gz
txr-5e57a1502ec05156d4455b91e452b38c0dc482b4.tar.bz2
txr-5e57a1502ec05156d4455b91e452b38c0dc482b4.zip
eval: refactor op_prof to support reuse.
* eval.c (prof_call): New function, contents based on op_prof. (struct prof_ctx): New struct type. (op_prof_callback): New static function. (op_prof): Reduced to call to prof_call, passing context through to callback which performs the evaluation that is timed. * eval.h (prof_call): Declared.
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions