Child pages
  • How to profile .NET Compact Framework applications

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Connect your device (this is optional if you're going to use an emulator)
  2. Start dotTrace Performance.
  3. Select Profile | Smart Device Application.
  4. Add a new host. Select your device from the list.
  5. Specify the path to the application at the device.
  6. Click OK. The selected application will start at the device. Keep it running until you're ready to get a snapshot. Grab a snapshot, and you're done.

Known Issues

Invalid Index

...

error in tracing mode

Most likelу the error is caused by a known bug in .NET Compact Framework 3.5.

...

Code Block
private void button1_Click(object sender, EventArgs e)
	{
		try
			{
				MethodThrowingEx();
			}
		catch
			{
				//do something;
			}
		}
	}

private void MethodThrowingEx()
	{
		throw new NotImplementedException();
	}

Can't

...

connect to

...

host. Unsupported

...

instruction set


Most likely you are trying to profile a Windows CE 4.x application, which is not supported by dotTrace 4 Performance.

The

...

operation has been cancelled

There are two known possible reasons:

  1. Some devices display a confirmation dialog box. If you don't explicitly agree, you get this error.
  2. There's a 1-minute timeout for copying profile core dll and profiler core pdb to Windows folder in the device. You might get this error if data transfer speed is low.

How to

...

diagnose

Start profiling and navigate to Windows folder in the device. Search for JetBrains.Profiler.Core.WinCE.YourProcessorType.dll and JetBrains.Profiler.Core.WinCE.YourProcessorType.pdb.

...