Bug 1085727 (part 3) - Print dmd.py's invocation at the top of its output. r=mccr8.

--HG--
extra : rebase_source : 939ad38842c4e7a93a0a15e88d63ad7adf40a02c
This commit is contained in:
Nicholas Nethercote 2014-10-20 17:45:58 -07:00
parent f30801d3b1
commit c2600a1df4
18 changed files with 22 additions and 1 deletions

View File

@ -612,8 +612,12 @@ def printDigest(args, digest):
out(' Sample-below size = ' + str(sampleBelowSize))
out('}\n')
# Print command line. Strip dirs so the output is deterministic, which is
# needed for testing.
out(separator, end='')
out('# ' + ' '.join(map(os.path.basename, sys.argv)) + '\n')
# Print invocation(s).
out(separator)
if type(dmdEnvVar) is not tuple:
printInvocation('', dmdEnvVar, sampleBelowSize)
else:

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o full-heap-empty-actual.txt --ignore-reports full-empty.json
Invocation {
$DMD = '1'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o full-heap-sampled-actual.txt --ignore-reports full-sampled.json
Invocation {
$DMD = '1'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o full-heap-unsampled1-actual.txt --ignore-reports full-unsampled1.json
Invocation {
$DMD = '1'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o full-heap-unsampled2-actual.txt --ignore-reports full-unsampled2.json
Invocation {
$DMD = '1'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o full-reports-empty-actual.txt full-empty.json
Invocation {
$DMD = '1'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o full-reports-sampled-actual.txt full-sampled.json
Invocation {
$DMD = '1'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o full-reports-unsampled1-actual.txt full-unsampled1.json
Invocation {
$DMD = '1'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o full-reports-unsampled2-actual.txt full-unsampled2.json
Invocation {
$DMD = '1'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o script-diff-basic-actual.txt script-diff1.json script-diff2.json
Invocation 1 {
$DMD = '--sample-below=127'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o script-diff-options-actual.txt --ignore-reports script-diff1.json script-diff2.json
Invocation 1 {
$DMD = '--sample-below=127'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o script-ignore-alloc-fns-actual.txt --ignore-reports --ignore-alloc-fns script-ignore-alloc-fns.json
Invocation {
$DMD = '1'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o script-max-frames-1-actual.txt --ignore-reports --max-frames=1 script-max-frames.json
Invocation {
$DMD = '1'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o script-max-frames-3-actual.txt --ignore-reports --max-frames=3 --no-fix-stacks script-max-frames.json
Invocation {
$DMD = '1'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o script-max-frames-8-actual.txt --ignore-reports --max-frames=8 script-max-frames.json
Invocation {
$DMD = '1'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o script-sort-by-req-actual.txt --ignore-reports --sort-by=req --no-fix-stacks script-sort-by.json.gz
Invocation {
$DMD = '1'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o script-sort-by-slop-actual.txt --ignore-reports --sort-by=slop script-sort-by.json.gz
Invocation {
$DMD = '1'

View File

@ -1,4 +1,5 @@
#-----------------------------------------------------------------
# dmd.py --filter-stacks-for-testing -o script-sort-by-usable-actual.txt --ignore-reports --sort-by=usable script-sort-by.json.gz
Invocation {
$DMD = '1'