| CPC G06F 8/61 (2013.01) [G06F 9/4451 (2013.01)] | 18 Claims |

|
1. An electronic device comprising:
a communication circuit;
memory storing instructions; and
at least one processor,
wherein the instructions, executed individually or collectively by the at least one processor, cause the electronic device to:
receive an application from an external electronic device through the communication circuit;
determine whether a profile related to the application exists in the memory;
by generating a virtual instance to execute the application through a virtual display, execute the application in a background state based on a determination that the profile related to the application does not exist in the memory;
generate the profile related to execution history of a bytecode of the application executed in the background state, wherein the profile comprises classes and methods that have been called more than a threshold number of times during execution of the application; and
install the application based on the generated profile which includes a partial code, without compiling the partial code;
wherein the profile related to the application does not correspond to a Just-In-Time (JIT) code of a JIT scheme.
|