[vtkusers] how to use gprof/gcov with vtk
Mathieu Malaterre
mmalat at imaging.robarts.ca
Wed Jul 17 14:06:26 EDT 2002
Hi Daniel,
I'll reply at the top of the message even if it's not recommended.
Thank you for your answer, but that was exactly what I tried. But I get theses weird errors:
/usr/bin/c++ -g -O2 -ftemplate-depth-64 -fprofile-arcs -ftest-coverage -Wall -DvtkCommon_EXPORTS -fPIC
-I/shalom/data/mmalat/VTK/Common -I/shalom/data/mmalat/VTK/Rendering -I/shalom/data/mmalat/VTK/Hybrid
-I/shalom/data/mmalat/VTK/Patented -I/shalom/data/mmalat/VTKBin -I/shalom/data/mmalat/VTK/Common
-I/shalom/data/mmalat/VTK/Filtering -I/shalom/data/mmalat/VTK/Imaging
-I/shalom/data/mmalat/VTK/Graphics -I/shalom/data/mmalat/VTK/IO
-I/shalom/data/mmalat/VTK/Utilities/zlib -I/shalom/data/mmalat/VTKBin/Utilities/zlib
-I/shalom/data/mmalat/VTK/Utilities/png -I/shalom/data/mmalat/VTKBin/Utilities/png
-I/shalom/data/mmalat/VTK/Utilities/jpeg -I/shalom/data/mmalat/VTKBin/Utilities/jpeg
-I/shalom/data/mmalat/VTK/Utilities/tiff -I/shalom/data/mmalat/VTKBin/Utilities/tiff
-I/shalom/data/mmalat/VTK/Utilities/expat -I/shalom/data/mmalat/VTKBin/Utilities/expat
-I/shalom/data/mmalat/VTK/Common/Testing/Cxx -I/usr/local/include/python2.2 -c
/shalom/data/mmalat/VTK/Common/vtkDataArray.cxx -o vtkDataArray.o
/shalom/data/mmalat/VTK/Common/vtkDataArray.cxx: In method `void vtkDataArray::CopyComponent (int,
vtkDataArray *, int)':
/shalom/data/mmalat/VTK/Common/vtkDataArray.cxx:852: Unable to find a register to spill in class `AREG
'.
/shalom/data/mmalat/VTK/Common/vtkDataArray.cxx:852: confused by earlier errors, bailing out
make[3]: *** [vtkDataArray.o] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Common] Error 2
make: *** [default_target] Error 2
Do you know how to work around ?
By the way I am not using Dart., is it really compulsary for that purpose ?
Thanks again for your answer,
mathieu
"Blezek, Daniel J (Research)" wrote:
> Mathieu,
>
> If you are on a Linux system, use "info gcc" and search for gcov and/or gprof. Otherwise, use
> Google to search for these programs.
>
> If you are using Dart, you'll need to add/modify these lines to your CMakeCache.txt file:
>
> //Flags used by CXX compiler
> CMAKE_CXX_FLAGS:STRING=-ftemplate-depth-64 -fprofile-arcs -ftest-coverage -Wall
>
> //C compiler flags
> CMAKE_C_FLAGS:STRING= -fprofile-arcs -ftest-coverage
>
> "-fprofile-arcs -ftest-coverage" is what makes gcov work. You'll also need to do a "Coverage" step
> in your Dart command line, after "Test"
>
> -dan
>
> --
> Daniel Blezek, Ph.D.
> blezek at crd.ge.com
> Visualization and Computer Vision Lab, Imaging Technologies
> GE Global Research Center
>
> > -----Original Message-----
> > From: Mathieu Malaterre [mailto:mmalat at imaging.robarts.ca]
> > Sent: Tuesday, July 16, 2002 10:25 PM
> > To: VTK Mailing list
> > Subject: [vtkusers] how to use gprof/gcov with vtk
> >
> >
> > Hi all,
> > I would like to hack my class, but I don't know how to use either
> > gprof or gcov.
> > I have seen that gcov is used in the DashBoard, but I
> > didn't find how
> > to use it.
> >
> > Thanks a lot
> > mathieu
> >
> > --
> > Malaterre, Mathieu
> > The John P. Robarts Research Institute
> > Imaging Research Laboratories
> > http://www.imaging.robarts.ca/~mmalat
> >
> >
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
--
Malaterre, Mathieu
The John P. Robarts Research Institute
Imaging Research Laboratories
http://www.imaging.robarts.ca/~mmalat
More information about the vtkusers
mailing list