diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-03-27 19:56:55 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-03-27 19:56:55 -0700 |
commit | 5e57a1502ec05156d4455b91e452b38c0dc482b4 (patch) | |
tree | 890c7fbb834c824214df36395df362b00e8f12da /tests/sock-common.tl | |
parent | 788efdc3f861eb83bc579de8eae800eb8ba848fa (diff) | |
download | txr-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 'tests/sock-common.tl')
0 files changed, 0 insertions, 0 deletions