From 9b1e1cdf231e25e50ba565bee77566949dd9a676 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Mon, 4 Apr 2011 18:18:57 +0000 Subject: Added a speed test to the GDBRemoteCommunicationClient and GDBRemoteCommunicationServer classes. This involved adding a new packet named "qSpeedTest" which can test the speed of a packet send/response pairs using a wide variety of send/recv packet sizes. Added a few new connection classes: one for shared memory, and one for using mach messages (Apple only). The mach message stuff is experimental and not working yet, but added so I don't lose the code. The shared memory stuff uses pretty standard calls to setup shared memory. llvm-svn: 128837 --- .../Process/gdb-remote/GDBRemoteCommunicationClient.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h') diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h index d28c8275bd4..ae1674a4d1f 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h @@ -190,7 +190,7 @@ public: ResetDiscoverableSettings(); bool - GetHostInfo (); + GetHostInfo (bool force = false); bool GetOSVersion (uint32_t &major, @@ -246,6 +246,17 @@ public: return old_packet_timeout; } + void + TestPacketSpeed (const uint32_t num_packets); + + // This packet is for testing the speed of the interface only. Both + // the client and server need to support it, but this allows us to + // measure the packet speed without any other work being done on the + // other end and avoids any of that work affecting the packet send + // and response times. + bool + SendSpeedTestPacket (uint32_t send_size, + uint32_t recv_size); protected: //------------------------------------------------------------------ -- cgit v1.2.3