Hi All, I'm trying to use mprof and mprof-report to profile my app for
execution time before I start optimising things or moving processing off the
main thread. I get an output like that shown below but it seems wrong. For
the output below I let the app start up and waited till my background web
service calls had finished then stopped profiling. So FinishedLaunching must
have only been called once but the report says eleven times!  GetQuestions
is only called once by my reckoning too. What gives?
Cheers,
Felix

 1567        0        138 System.Collections.Generic.List`1:.ctor
(System.Collections.Generic.IEnumerable`1<T>)
    16 calls from:
        MobileBullet.DomainObjectService:GetQuestions ()
        System.Linq.Enumerable:ToList<TSource>
(System.Collections.Generic.IEnumerable`1<TSource>)
        System.Collections.Generic.List`1:.ctor
(System.Collections.Generic.IEnumerable`1<T>)
        System.Collections.Generic.List`1:AddEnumerable
(System.Collections.Generic.IEnumerable`1<T>)
      
 System.Linq.Enumerable/<CreateSelectIterator>c__Iterator1D`2:MoveNext ()
        System.Linq.Enumerable/<CreateWhereIterator>c__Iterator2B`1:MoveNext
()
      
 System.Linq.Enumerable/<CreateSelectManyIterator>c__Iterator21`3:MoveNext
()
        SQLite.TableQuery`1:GetEnumerator ()
        SQLite.SQLiteCommand:ExecuteQuery<T> ()
        System.Linq.Enumerable:ToList<TSource>
(System.Collections.Generic.IEnumerable`1<TSource>)
    11 calls from:
        (wrapper runtime-invoke)
<Module>:runtime_invoke_bool__this___object_object
(object,intptr,intptr,intptr)
        Touch.Container.AppDelegate:FinishedLaunching
(MonoTouch.UIKit.UIApplication,MonoTouch.Foundation.NSDictionary)
        Intranel.Mobile.AppBase`1:SetInstance
(Intranel.Mobile.AppBase`1<TGlobalState>)
        Touch.Container.VLBBTouchApp:SingletonInitialise ()
        MobileBullet.GlobalState:.ctor (int)
        MobileBullet.DomainObjectService:.ctor
(MobileBullet.SafeMobileBulletClient)
        MobileBullet.DomainObjectService:InitDomObjectTables ()
        SQLite.SQLiteConnection:CreateTable<T> ()
        SQLite.SQLiteConnection:CreateTable (System.Type)
        System.Linq.Enumerable:ToArray<TSource>
(System.Collections.Generic.IEnumerable`1<TSource>)



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/mprof-report-call-graphs-and-counts-seem-weird-tp4656423.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to