|
From: Nicholas N. <nj...@ca...> - 2003-10-28 08:32:13
|
On Mon, 27 Oct 2003, Ayodele Thomas wrote: > I am trying to print out some stats from my skin using VG_(printf) that > include floats. But when I try to use %f, %e, or %g, nothing prints. Is > Valgrind capable of printing floats using the included VG_(...) functions? No, but you can fake it, with a bit of effort: see percentify() in Cachegrind for an example. > Also, has anyone tried implementing VG_(fprintf)? I need the ability to > print different stats to different files. You can use VG_(sprintf)() and VG_(write)() to achieve this. See Cachegrind for some examples. This primitiveness can be annoying. Some work is being done towards allowing Valgrind to use the standard libraries, but it's still a long way from completion. N |