Don't report Application.Invoke calls.

This commit is contained in:
Lluis Sanchez Gual 2011-03-01 12:14:44 +01:00
parent 7d828feb90
commit 5e77fdbb24

View file

@ -65,6 +65,7 @@ simple_method_enter (MonoProfiler *prof, MonoMethod *method)
}
if (current_thread_id != guithread &&
!(strcmp (klass_name, "Object")==0 && strcmp (method_name, "Dispose")==0) &&
!(strcmp (klass_name, "Application")==0 && strcmp (method_name, "Invoke")==0) &&
!(strcmp (method_name, "Finalize")==0) &&
!(strcmp (method_name, "get_NativeDestroyHandler")==0) &&
!(strcmp (method_name, "remove_Destroyed")==0)