1. An apparatus for generating a custom class library for a device, comprising: one or more processors; and an analyzer to be operated by the one or more processors to receive a workload for the device and a class library used by the workload, analyze the workload and the class library, identify one or more workload full application programming interface (API) call chains that include direct calls from the workload to the class library and subsequent calls within the class library resulted from the direct calls from the workload to the class library, and generate information about the one or more workload full API call chains; wherein a generator is to generate, from the class library, a custom class library for the workload that is smaller than the class library, based at least in part on the one or more workload full API call chains.