Priority
Major
Type
Bug 
State
Fixed 
Assignee
Mikhail Pilin 
Subsystem
Core 
Affected versions
Fixed in
Fixed in build
Next build 
  • Submitted by   Mikhail Pilin
    22 months ago (27 Mar 2008 15:13)
  • Updated by   Vadim Gurov
    22 months ago (27 Mar 2008 15:34)

DTRC-728

Invalid measure time for example

0
using System;
using System.Threading;
using JetBrains.dotTrace.Api;

namespace Test1
{
internal class Program
{
private static void WorkerThread()
{
while (true)
{
Thread.Sleep(2000);
}
}

private static void Main(string[] args)
{
//Create a bunch of workers
for (int i = 0; i < 10; i++)
new Thread(WorkerThread) {Name = ("Worker " + i), IsBackground = true}.Start();

Thread.Sleep(1500);
CPUProfiler.Start();
Thread.Sleep(1000);
for (int i = 0; i < 10000; i++)
{
double j = Math.Sqrt(i);
}
CPUProfiler.StopAndSaveSnapShot();
}
}
}

Issue was closed
Comments (1)
 
History (0)
 
Links
 
Mikhail Pilin
  Mikhail Pilin
27 Mar 2008 15:16
(22 months ago)
#permalink
Special thanks for Bruce Thompson who made this test example.