← Back to team overview

nunit-core team mailing list archive

[Bug 740304] Re: teardown performance memory

 

Yes, it is Information about the test. Is the information available for AddIns (should not be measured by itself)? I have no knowlegde on AddIns. Sorry. 
All statistic values should be without startup and teardown, only the raw test (perhaps it could be nice to have them additional). 

[TearDown]
void AfterTest 
{
  TestContext c = ...;
  if (c.IsSuccessful)
  {
     if (c.CurrentNumber == 1)
         myStatistic.Clear();
     myStatistic.Add (c.CurrentNumber, c.TestCpuCycles, c.TestMaxMemoryUsage);
     if (c.CurrentNumber == c.NumberOfRuns)
        myStatistic.PublishResults();                // write to xml-file, ...
  }
}

-- 
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.
https://bugs.launchpad.net/bugs/740304

Title:
  teardown performance memory

Status in NUnit Test Framework:
  New

Bug description:
  In #611325 the introduced TestContext should also have performance information. I think the most important things are CPU cycles (not runtime!) and maximum of memory used by the last test.
  Perhaps num of used threads und their CPU cylcles and maximum stack size would be interested, too.
  A very good additional information would be, how often the test will be run and the number of the current run.

  Runtime ist not useful on current processors because can change the
  frequence. Since vista new functions are available for cpu cycles.

  Background: We make performance tests with nunit and the statistics.



References