File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ private void EmitTestReport()
178
178
var directory = GlobalTestReport . CheckerConfiguration . OutputDirectory ;
179
179
var pintPath = directory + file + "_pchecker_summary.txt" ;
180
180
Console . WriteLine ( $ "..... Writing { pintPath } ") ;
181
- File . WriteAllText ( pintPath , GlobalTestReport . GetSummaryText ( $ " { Profiler . GetElapsedTime ( ) : 0.## } " ) ) ;
181
+ File . WriteAllText ( pintPath , GlobalTestReport . GetSummaryText ( Profiler ) ) ;
182
182
183
183
Console . WriteLine ( $ "... Elapsed { Profiler . GetElapsedTime ( ) : 0.##} sec and used { Profiler . GetMaxMemoryUsage ( ) : 0.##} GB.") ;
184
184
Original file line number Diff line number Diff line change 6
6
using System . Runtime . Serialization ;
7
7
using System . Text ;
8
8
using PChecker . Coverage ;
9
+ using PChecker . Utilities ;
9
10
10
11
namespace PChecker . SystematicTesting
11
12
{
@@ -181,7 +182,7 @@ public bool Merge(TestReport testReport)
181
182
/// <summary>
182
183
/// Returns a simple string testing report with only the keys and values.
183
184
/// </summary>
184
- public string GetSummaryText ( string runtime ) {
185
+ public string GetSummaryText ( Profiler Profiler ) {
185
186
var report = new StringBuilder ( ) ;
186
187
187
188
report . AppendFormat ( "bugs:{0}" , NumOfFoundBugs ) ;
@@ -195,7 +196,10 @@ public string GetSummaryText(string runtime) {
195
196
report . AppendFormat ( "max_depth:{0}" , MaxExploredFairSteps < 0 ? 0 : MaxExploredFairSteps ) ;
196
197
report . AppendLine ( ) ;
197
198
198
- report . AppendFormat ( "time_seconds:{0}" , runtime ) ;
199
+ report . AppendFormat ( $ "time_seconds:{ Profiler . GetElapsedTime ( ) : 0.##} ") ;
200
+ report . AppendLine ( ) ;
201
+
202
+ report . AppendFormat ( $ "memory_max_mb:{ Profiler . GetMaxMemoryUsage ( ) : 0.##} ") ;
199
203
200
204
return report . ToString ( ) ;
201
205
}
You can’t perform that action at this time.
0 commit comments