prg_profile_load()
Abstract
Loads a profile into memory.
Syntax
prg_profile_load (spec)
| Argument | Type | Description |
|---|---|---|
spec |
const PrgT_Profile_Spec |
Specification for the profile to be loaded. |
Return Type
PrgT_Profile_Handle
Handle to the specified profile, or PRGC_NIL_PROFILE_HANDLE if the profile does not exist.
Header
prg_profile_funcs.h
Details
This function uses a profile specification to locate and load a profile. Typically, the specification is obtained from an object attribute by using Ets_Obj_Attr_Get() or one of the op_ima_obj_attr_get() Kernel Procedures. Once loaded, the data in the profile can be accessed by other Profile package functions. When no longer needed, unload the profile with prg_profile_unload() and free its memory with prg_profile_destroy().