Bug 35520 - In iOS, the Time Profiler is not getting the CPU Time for the method (Call Tree)
Summary: In iOS, the Time Profiler is not getting the CPU Time for the method (Call Tree)
Alias: None
Product: Profiler
Classification: Xamarin
Component: General ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: (C8)
Assignee: Rodrigo Moya
Depends on:
Reported: 2015-11-04 02:14 UTC by Tittu Aliyas
Modified: 2016-01-20 12:11 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Tittu Aliyas 2015-11-04 02:14:56 UTC
In iOS (with Xamarin Studio), the CPU time is always getting displayed as zero for the method (Time Profiler -> Call Tree)
Xamarin Studio 5.9.1 (build 3)
Xamarin Profiler
Steps to Reproduce:
1. Make sure the device is connected with the Mac and Xamarin studio detected the device.
2. Launch the Xamarin profiler from Xamarin studio.
3. Run the Xamarin profiler and get the result for any scenario.
4. Check the result in Time Profiler -> Call Tree.
Actual Result: 
CPU Time is always getting displayed as zero for the method (Time Profiler -> Call Tree).
Expected Result:
Xamarin Time Profiler should get the CPU time for the method (Time Profiler -> Call Tree).
Comment 2 Rodrigo Moya 2015-11-04 03:46:41 UTC
Can you please share that MLPD, so that we can have a look?
Comment 5 Rodrigo Moya 2015-12-01 22:49:42 UTC
So, mprof-report shows 0ms also:

	Mono System:
		User Time                      : 0.000ms
		System Time                    : 0.000ms
		Total Time                     : 0.000ms
		Working Set                    : 64794624
		Private Bytes                  : 64794624
		Virtual Bytes                  : 823746560
		Page Faults                    : 0
		CPU Load Average - 1min        : 1.250000
		CPU Load Average - 5min        : 1.270996
		CPU Load Average - 15min       : 1.951660

The MLPD is version 8, which is somewhat "old", so what version of xamarin.ios are you using? I think just updating to the latest available in the public channels, you should get this fixed, so can you try?