History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: DTRC-728
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Mikhail Pilin
Reporter: Mikhail Pilin
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
dotTrace

Invalid measure time for example

Created: 27 Mar 08 15:13   Updated: 27 Mar 08 15:34
Component/s: Core
Affects Version/s: 4.0, 3.1
Fix Version/s: 4.0, 3.1

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
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();
}
}
}



 All   Comments   Work Log   Change History      Sort Order:
Mikhail Pilin - 27 Mar 08 15:16
Special thanks for Bruce Thompson who made this test example.