Am Sonntag, 24. Dezember 2017 um 12:39:16, schrieb Jean-Marc Lasgouttes <lasgout...@lyx.org> > Le 24/12/2017 à 06:18, Kornel Benko a écrit : > >> What does debug mean? Is this only debug information or also > >> instrumenting for run-time checking? > > > > Only Debug information. Also the optimization is turned to -O0 > > OK. > > >> Kornel, what is a good set of parameters for profiling? > > > I would try > > -DLYX_DEBUG=ON -DLYX_PROFILE=ON -DLYX_CONSOLE=ON > > and without -DLYX_INSTALL=ON, because this disables profiling on Windows. > > (You may comment the CMakeLists.txt:196 line > > #set(LYX_PROFILE OFF) > > ) > > but mark, my knowledge about Windows is nearly to nothing. > > Also you may need 'gprof'. > > Actually, gprof is no good for LyX, and is only for gcc. What I use > these days is a build with full optimization and debug information. You > can run that under a system level debugger and get good results. > > You can take a look at the matrix of settings for the > --enable-build-type option in INSTALL to see the autoconf choices. > > JMarc
But does it apply to MSVC? I could not see In cmake we have Debug, Release, RelWithDebInfo, MinSizeRel. But no profiling for MSVC. Explicitly disabled by Peter Kümmel. And he knows better. In INSTALL: The `profiling' build type uses the -fno-omit-frame-pointer option with gcc But again: what to do for MSVC? I am as clueless as before. Kornel
signature.asc
Description: This is a digitally signed message part.