profiling - Compute CPU and memory usage of a Java class without actually executing the class -


i have design client server system valid java .class file provided user. catch is, class file should either executed on client or server side based on following criteria :

  • if network latency + execution time on server < execution time of client it'll executed remotely on server , result returned client else it'll executed locally on client

  • it assumed configuration of client lower configuration of server. configuration considered here ram , processor

  • the dynamic code in light here, executed, resource hungry code n queens, traveling salesman, etc.

my project based on dynamic class loading in java. i'm using tcp connection establish communication between client , server.

it helpful if guys can provide me allow me amount of resources consumed class file upon execution without executing it.

my mentor says profile code amount of resource used can't seem find profiling api or such procedure cpu , memory usage of code @ run time. have managed find external profiling tools. if guys can shed light on how achieve internal profiling through code helpful


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -