Turn GC_getStatistics into hintGCStats
This commit is contained in:
parent
c009aadc74
commit
3c20747394
2 changed files with 9 additions and 6 deletions
|
|
@ -127,7 +127,7 @@ type
|
||||||
hintProcessing, hintCodeBegin, hintCodeEnd, hintConf, hintPath,
|
hintProcessing, hintCodeBegin, hintCodeEnd, hintConf, hintPath,
|
||||||
hintConditionAlwaysTrue, hintName, hintPattern,
|
hintConditionAlwaysTrue, hintName, hintPattern,
|
||||||
hintExecuting, hintLinking, hintDependency,
|
hintExecuting, hintLinking, hintDependency,
|
||||||
hintSource, hintStackTrace,
|
hintSource, hintStackTrace, hintGCStats,
|
||||||
hintUser
|
hintUser
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
@ -423,6 +423,7 @@ const
|
||||||
hintDependency: "$1",
|
hintDependency: "$1",
|
||||||
hintSource: "$1",
|
hintSource: "$1",
|
||||||
hintStackTrace: "$1",
|
hintStackTrace: "$1",
|
||||||
|
hintGCStats: "$1",
|
||||||
hintUser: "$1"]
|
hintUser: "$1"]
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
@ -438,11 +439,11 @@ const
|
||||||
"ProveInit", "ProveField", "ProveIndex", "GcUnsafe", "GcUnsafe2", "Uninit",
|
"ProveInit", "ProveField", "ProveIndex", "GcUnsafe", "GcUnsafe2", "Uninit",
|
||||||
"GcMem", "Destructor", "LockLevel", "ResultShadowed", "User"]
|
"GcMem", "Destructor", "LockLevel", "ResultShadowed", "User"]
|
||||||
|
|
||||||
HintsToStr*: array[0..21, string] = ["Success", "SuccessX", "LineTooLong",
|
HintsToStr*: array[0..22, string] = ["Success", "SuccessX", "LineTooLong",
|
||||||
"XDeclaredButNotUsed", "ConvToBaseNotNeeded", "ConvFromXtoItselfNotNeeded",
|
"XDeclaredButNotUsed", "ConvToBaseNotNeeded", "ConvFromXtoItselfNotNeeded",
|
||||||
"ExprAlwaysX", "QuitCalled", "Processing", "CodeBegin", "CodeEnd", "Conf",
|
"ExprAlwaysX", "QuitCalled", "Processing", "CodeBegin", "CodeEnd", "Conf",
|
||||||
"Path", "CondTrue", "Name", "Pattern", "Exec", "Link", "Dependency",
|
"Path", "CondTrue", "Name", "Pattern", "Exec", "Link", "Dependency",
|
||||||
"Source", "StackTrace",
|
"Source", "StackTrace", "GCStats",
|
||||||
"User"]
|
"User"]
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
@ -503,14 +504,16 @@ const
|
||||||
hintDependency,
|
hintDependency,
|
||||||
hintExecuting, hintLinking,
|
hintExecuting, hintLinking,
|
||||||
hintCodeBegin, hintCodeEnd,
|
hintCodeBegin, hintCodeEnd,
|
||||||
hintSource, hintStackTrace},
|
hintSource, hintStackTrace,
|
||||||
|
hintGCStats},
|
||||||
{low(TNoteKind)..high(TNoteKind)} - {warnShadowIdent, warnUninit,
|
{low(TNoteKind)..high(TNoteKind)} - {warnShadowIdent, warnUninit,
|
||||||
warnProveField, warnProveIndex,
|
warnProveField, warnProveIndex,
|
||||||
warnGcUnsafe,
|
warnGcUnsafe,
|
||||||
hintDependency,
|
hintDependency,
|
||||||
hintExecuting,
|
hintExecuting,
|
||||||
hintCodeBegin, hintCodeEnd,
|
hintCodeBegin, hintCodeEnd,
|
||||||
hintSource, hintStackTrace},
|
hintSource, hintStackTrace,
|
||||||
|
hintGCStats},
|
||||||
{low(TNoteKind)..high(TNoteKind)} - {hintStackTrace},
|
{low(TNoteKind)..high(TNoteKind)} - {hintStackTrace},
|
||||||
{low(TNoteKind)..high(TNoteKind)}]
|
{low(TNoteKind)..high(TNoteKind)}]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ proc handleCmdLine() =
|
||||||
extccomp.initVars()
|
extccomp.initVars()
|
||||||
processCmdLine(passCmd2, "")
|
processCmdLine(passCmd2, "")
|
||||||
mainCommand()
|
mainCommand()
|
||||||
if gVerbosity >= 2: echo(GC_getStatistics())
|
if optHints in gOptions and hintGCStats in gNotes: echo(GC_getStatistics())
|
||||||
#echo(GC_getStatistics())
|
#echo(GC_getStatistics())
|
||||||
if msgs.gErrorCounter == 0:
|
if msgs.gErrorCounter == 0:
|
||||||
when hasTinyCBackend:
|
when hasTinyCBackend:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue