Bug 6337 - Batched method calls and field accesses
Summary: Batched method calls and field accesses
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: unspecified
Hardware: PC Mac OS
: High normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
Depends on:
Reported: 2012-07-31 10:40 UTC by Mikayla Hutchinson [MSFT]
Modified: 2014-06-09 06:28 UTC (History)
6 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 or GitHub 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 Mikayla Hutchinson [MSFT] 2012-07-31 10:40:48 UTC
It would be be nice if the debugger allowed batching method calls and field accesses. Currently each method call or field access involves a TCP roundtrip, and over USB this takes ~10ms. This means that evaluating a lot of properties and ToString calls can take a lot of time simply because of the sequential roundtrips.

Ideally MonoDevelop could send a single request with a list of methods+args and fields, and receive all the results either in a single response or asynchronously.
Comment 1 Zoltan Varga 2012-08-12 20:15:10 UTC
Fields accesses can already be batched using TypeMirror/ObjectMirror.GetValues ().
Batched method invocations are now supported on master using the new
ObjectMirror.BeginInvokeMultiple () method. There are some comments in ObjectMirror.cs on how to use it.
The runtime parts have been backported to mobile master as well, the only problem is that the protocol version in the runtime can not be incremented, so the only way to detect whenever this is supported by the runtime is to call it.
Comment 2 Miguel de Icaza [MSFT] 2012-09-02 12:56:18 UTC
Can we close this bug then?
Comment 3 Mikayla Hutchinson [MSFT] 2012-09-02 14:09:57 UTC
No, we need MonoDevelop to actually make batched invocations and field accesses.
Comment 4 Lluis Sanchez 2014-06-09 06:28:19 UTC
We already made many optimizations, so this may not be required anymore. In any case, we have to look to debugger performance as a whole, since we may be able to do simpler changes with a bigger impact.