主权项 |
1. A method comprising:
identifying, by an operating system, a page fault during an execution of an application being loaded into a memory while the execution of the application is not being analyzed by a profiler, the page fault indicating that a part of one or more images of the application being currently executed has not been loaded into the memory yet; collecting, by the operating system, page fault data associated with the page fault, and storing the page fault data in a kernel buffer, the page fault data identifying the part of the one or more images used to satisfy the page fault, wherein the page fault data is collected by a page fault data collector of the operating system while the execution of the application is not being analyzed by the profiler; periodically writing, by a processing device executing the operating system, the page fault data from the kernel buffer to a data store for subsequent profiling of the application by the profiler, the page fault data causing the profiler to determine a preferred sequence of sub-routines within the one or more images of the application for loading of the application into the memory; and iteratively repeating, by the operating system, the collecting of the page fault data, the storing of the page fault data in the kernel buffer and the writing of the page fault data from the kernel buffer to the data store for the profiler, wherein the collecting, the storing and the writing are iteratively repeated by the operating system until a profiler-determined preferred sequence of the sub-routines within the one or more images of the application results in not more than N number of page faults occurring during the loading of the application. |