|
From: Julian S. <js...@ac...> - 2005-04-04 10:24:12
|
It occurred to me the other day that having addresses in stack
snapshots is almost valueless to end users, and soaks up
valuable screen space. Compare the two versions below. What do
folks think of removing the addresses by default, and having a
command-line flag such as --verbose-stacktrace to get the current
behaviour?
It might also be worth truncating function names to (eg) 60 chars
or something, in the default behaviour, since demangled C++ names
can be very long.
J
Process terminating with default action of signal 2 (SIGINT)
at 0x8057A84: QMCBasisFunction::basis_function(int,
QMCBasisFunctionCoefficients&, int, Array1D<double>&) (cmath:476)
by 0x8057C42: QMCBasisFunction::getPsi(int, Array2D<double>&, int)
(Array2D.h:293)
by 0x80862F7: QMCSlater::update_D(int, Array2D<double>&)
(QMCSlater.cpp:132)
by 0x8086399: QMCSlater::update_Ds(int, Array2D<double>&)
(QMCSlater.cpp:119)
by 0x8086611: QMCSlater::evaluate(Array2D<double>&) (QMCSlater.cpp:94)
by 0x806AEA5: QMCFunctions::evaluate(Array2D<double>&)
(QMCFunctions.cpp:63)
by 0x8088C08: QMCWalker::evaluate() (QMCWalker.cpp:872)
by 0x808BCFF: QMCWalker::propagateWalker() (QMCWalker.cpp:79)
by 0x8085B6B: QMCRun::propagateWalkers() (stl_list.h:172)
by 0x8085B9F: QMCRun::step() (QMCRun.cpp:424)
by 0x8075C5F: QMCManager::run() (QMCManager.cpp:328)
by 0x808E678: qmcbeaver(int, char**) (QMcBeaver.cpp:80)
Process terminating with default action of signal 2 (SIGINT)
at QMCBasisFunction::basis_function(int, QMCBasisFunctionCoefficients&,
int, Array1D<double>&) (cmath:476)
by QMCBasisFunction::getPsi(int, Array2D<double>&, int) (Array2D.h:293)
by QMCSlater::update_D(int, Array2D<double>&) (QMCSlater.cpp:132)
by QMCSlater::update_Ds(int, Array2D<double>&) (QMCSlater.cpp:119)
by QMCSlater::evaluate(Array2D<double>&) (QMCSlater.cpp:94)
by QMCFunctions::evaluate(Array2D<double>&) (QMCFunctions.cpp:63)
by QMCWalker::evaluate() (QMCWalker.cpp:872)
by QMCWalker::propagateWalker() (QMCWalker.cpp:79)
by QMCRun::propagateWalkers() (stl_list.h:172)
by QMCRun::step() (QMCRun.cpp:424)
by QMCManager::run() (QMCManager.cpp:328)
by qmcbeaver(int, char**) (QMcBeaver.cpp:80)
|
|
From: Maurice v. d. P. <gri...@ge...> - 2005-04-04 16:10:17
|
On Mon, Apr 04, 2005 at 11:23:51AM +0100, Julian Seward wrote: > What do > folks think of removing the addresses by default, and having a > command-line flag such as --verbose-stacktrace to get the current > behaviour? I've only used it once and in that case I knew I wanted to see stack addresses before I looked at them, so I guess your suggestion is fine. > It might also be worth truncating function names to (eg) 60 chars > or something, in the default behaviour, since demangled C++ names > can be very long. Isn't it more likely that people want to see the full and long name instead of having it cut off? In cases where it screws up the layout, the maximum length will vary anyway, so there's no sensible default. Regards, Maurice. --=20 Maurice van der Pot Gentoo Linux Developer gri...@ge... http://www.gentoo.org Creator of BiteMe! gri...@kf... http://www.kfk4ever.com |
|
From: Robert W. <rj...@du...> - 2005-04-04 16:55:59
|
> Isn't it more likely that people want to see the full and long name > instead of having it cut off? In cases where it screws up the layout, > the maximum length will vary anyway, so there's no sensible default. Yeah - I'd say leave the full names, but remove the stack addresses unless verbosage is requested. |