摘要:
A method for communication includes coupling a client device to communicate with a host computer over a serial link. Responsively to a call from a client application running on the client device, the client device submits a request over the serial link to the host computer to open a proxy connection for communication between the client application and a server application. Responsively to the request, the host computer creates a socket for communication with the server application, so as to establish the proxy connection via the socket. The host computer and client device convey data between the server application and the client application over the serial link using the proxy connection.
摘要:
A method for communication includes coupling a client device to communicate with a host computer over a serial link. Responsively to a call from a client application running on the client device, the client device submits a request over the serial link to the host computer to open a proxy connection for communication between the client application and a server application. Responsively to the request, the host computer creates a socket for communication with the server application, so as to establish the proxy connection via the socket. The host computer and client device convey data between the server application and the client application over the serial link using the proxy connection.
摘要:
One embodiment of the present invention provides a system for profiling a virtual machine on an embedded device. During operation, the system receives an operation-request at a system-level profiler from a virtual machine on an embedded device. The system then records the operation-request in a system-level log. Next, the system sends the operation-request to a native layer on the embedded device. Then, the system receives an operation-response associated with the operation-request from the native layer. The system then records the operation-response in the system-level log. Next, the system sends the operation-response to the virtual machine, thereby facilitating logging of interactions between the virtual machine and the native layer. Note that logging interactions between the virtual machine and the native layer facilitates emulation of the platform independent virtual machine on a second device. Furthermore, note that logging interactions between the virtual machine and the native layer can facilitate emulation of the platform independent virtual machine executing a specific application on a second device.
摘要:
One embodiment of the present invention provides a system for testing an application running on a virtual machine. Note that this involves the system profiling the application, and determining when the virtual machine is executing code in response to commands from the application and when a device hosting the virtual machine is executing code in response to commands from the virtual machine. During operation, the system executes the application. In response to executing the application, the system receives a code-level log associated with the application from a code-level profiler. Then, using a system-level profiler, the system creates a system-level log associated with the application. Next, the system combines the code-level log and the system-level log to produce a profile of the application. The system then analyzes the profile to determine if a problem exists in the application. Note that this can include identifying performance bottlenecks and “hot spots,” which is code that is continually or frequently executed, and thus, facilitating removing application bugs and improving application efficiency.