A dynamic library profiling method comprising: writing a first break point instruction (BP ST) to a start address of a dynamic library function indicated by calling a procedure linkage table corresponding to the dynamic library function, the PLT referencing a global offset table storing the start address of the dynamic library function, in an address space of a target process in a memory after the dynamic library function is loaded at run time of the target process, wherein the dynamic library function included in a dynamic library linked to a user program is dynamically loaded into the memory; recording a first event count value that is a process performance measurement unit count when the target process including the user program and the dynamic library executes the first break point instruction (BP_ST); writing a second break point instruction (BP_RT) to a return address of the dynamic library function, wherein the return address of the dynamic library function is an address in the address space of the target process in the memory, in which address the next execution code of the user program of the target process is recorded after the execution of the dynamic library function is completed; and calculating a PMU count value generated in a processor core (40; 50) while the dynamic library function is executed, by comparing the recorded first event count value with a second event count value that is a process PMU count when the target process executes the second break point instruction (BP_RT), wherein the process PMU count is a cumulative value of PMU count values generated in the processor core (40; 50) while the target process is executed and does not comprise a process PMU count of another process different from the target process when a context switch occurs in time sharing system, wherein the recording of the first event count value comprises obtaining first resource usage statistics of the target process when the target process executes the first break point instruction (BP_ST), and wherein the first resource usage statistics include process PMU counts that are cumulative PMU count values generated in the processor core (40; 50) during execution of the target process until the target process executes the first break point instruction (BP_ST). writing a first break point instruction (BP ST) to a start address of a dynamic library function indicated by calling a procedure linkage table corresponding to the dynamic library function, the PLT referencing a global offset table storing the start address of the dynamic library function, in an address space of a target process in a memory after the dynamic library function is loaded at run time of the target process, wherein the dynamic library function included in a dynamic library linked to a user program is dynamically loaded into the memory; recording a first event count value that is a process performance measurement unit count when the target process including the user program and the dynamic library executes the first break point instruction (BP_ST); writing a second break point instruction (BP_RT) to a return address of the dynamic library function, wherein the return address of the dynamic library function is an address in the address space of the target process in the memory, in which address the next execution code of the user program of the target process is recorded after the execution of the dynamic library function is completed; and calculating a PMU count value generated in a processor core (40; 50) while the dynamic library function is executed, by comparing the recorded first event count value with a second event count value that is a process PMU count when the target process executes the second break point instruction (BP_RT), wherein the process PMU count is a cumulative value of PMU count values generated in the processor core (40; 50) while the target process is executed and does not comprise a process PMU count of another process different from the target process when a context switch occurs in time sharing system, wherein the recording of the first event count value comprises obtaining first resource usage statistics of the target process when the target process executes the first break point instruction (BP_ST), and wherein the first resource usage statistics include process PMU counts that are cumulative PMU count values generated in the processor core (40; 50) during execution of the target process until the target process executes the first break point instruction (BP_ST).