Problem profiling MVC application with async actions
I am profiling an MVC application which uses async actions extensively. Problem is I get very strange results.
The timing of the await action inside the MVC action has a 'silly' time, e.g. it says it has taken seconds of time while the Chrome Network profiler said the action took 15ms. In addition the time shown seems to increase with every call to that action, e.g. call n might say it took 21,500 ms n+1 said it took 64,000 ms. Subsequent async actions after the first async action can show as zero time.
Also I know it does database calls via Entity Framework, but I don't see any SQL database calls after the initial check of the database migration table. After startup I have called a method that has never been called before but don't see any database accesses. It is a small test database, but I am accessing records not looked at any time before this method call so I don't see how they might be cached.
I am running ANTS profiler 9.0 at the highest level of profiling. It says it has detected async mode and my timing options are CPU time, milliseconds. I zoom into a specific section