toNative: detect cpu usage