On Thursday 15 November 2007, Nicholas Nethercote wrote: > On Thu, 15 Nov 2007, Josef Weidendorfer wrote: > > > The "global single option" was meant to be about the output file only. > > Of course there also is a log output that already can be redirected > > with "--log-file". But we currently do not have a per-tool option for the > > log > > output of each tool. Why do we want different options to specify the output > > file of each tool then? > > Ok, I think you're suggesting we have just two options, something like: > > --log-file: for logging output, eg. what normally goes to stderr > > --out-file: for tool-specific file output, eg. Cachegrind/Massif
Yes, that was the idea. > I find --out-file confusing. The difference with --log-file is not > immediately clear. Which difference? Do you think that people could confuse these two options? > Also, what about tools that don't create a file, like > Memcheck -- is --out-file ignored? Should it cause an abort if it's used? > I think having options that all tools must implement is not a good idea. We > already have some (eg. -v) but I'd like to avoid more. It just would be handled the same as other tool-specific options. Ie. it only would be a convention among tools, not technically enforced. > In comparison, if we have a --cachegrind-out-file option, it's very clear > what it does, particularly if the default name is "cachegrind.out.<pid>". I am not really settled about "--out-file". I just think that options for similar functions in different tools should show some consistency. So I am really fine with an option "--<toolname>-out-file=..." with support for patterns (like %p). So I would change the according callgrind option to "--callgrind-out-file=...", independent of the fact that callgrind could produce further files with additional suffix. Is this OK? Josef > > Nick > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Valgrind-developers mailing list Valgrind-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-developers