On 5/5/08, Evan Lezar <
evanlezar@...> wrote:
> What are my options with respect to gaining access to those times from a
> regression test? I could define node properties, but this does not strike
> me as the best solution.
The timer is available in python, but obviously can only be called
between methods. See tests/ngui.performance.sds.polycube.py. I see two
options here:
1. Split the node in 3: K3DBitmapToCudaBitmap, CUDABitmapAdd and
CUDABitmapToK3DBitmap. The properties connecting these 3 nodes would
contain a CUDA pointer. When constructing the pipeline in a script,
you should mke sure you read the output, so you can time each step.
2. Implement the k3d::icommand_node interface in your current node,
exposing a text command for each step you want to benchmark. These
commands can be called from python, with timer evaluations between
each of them.
I'd choose 1 if preliminary testing using the k3d::log method
indicates that memory transfer time is significant.
Cheers,
--
Bart
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development