On Thu, Apr 22, 2010 at 10:37 AM, Clinton Stimpson <[email protected]>wrote:
> > On Apr 21, 2010, at 11:28 PM, Matt McCormick wrote: > > > Clinton Stimpson <clin...@...> writes: > > > >> > >> Hi, > >> > >> Can ctest report peak memory usage like it reports time and other > >> measurements? > >> > >> Thanks, > >> Clint > >> _______________________________________________ > > > > You could have ctest run valgind's massif tool. An example can be found > here: > > http://insight-journal.org/browse/publication/722 > > The source is downloadable. > > The output of massif is processed with ms_print, which is parsed by a > python > > script for the peak. > > > > Is there some way to put that result into the ctest output file, Test.xml, > as a measurement? > > Anything that appears in the test's output on stdout as one of the expected "DartMeasurement" formats will be transformed into a NamedMeasurement element in Test.xml and will appear in the test results page in a table. For example, on this page: http://www.cdash.org/CDash/testDetails.php?test=40904791&build=591842 The NamedMeasurements are in the table immediately underneath the header. The measurements on that page are named "Execution Time (s)", "Command Line", "Completion Status" and "Exit Value". To send a number (for example, 42) as a measurement named "Simple", try printing output like this on stdout: <DartMeasurement name="Simple" type="numeric/integer">42</DartMeasurement> <DartMeasurement name="pi" type="numeric/double">3.14159</DartMeasurement> Valid type values include: (I'm inferring this part from looking at the VTK source code...) image/png numeric/integer numeric/double text/string VTK testing uses this technique to send images to the CDash server when an image comparison test fails. You can see an example of that here: http://www.cdash.org/CDash/testDetails.php?test=51100873&build=591789 And you can search the CMake and VTK source trees for "DartMeasurement" to see the code that deals with this stuff. HTH, David
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
