js-mdict
Version:
mdict (*.mdx, *.mdd) file reader. Licensed under AGPL-3.0 for better community cooperation and commercial value protection.
19 lines (18 loc) • 571 B
TypeScript
/**
* measuer the function call time cost
* @param {any} _this the target function bind object
* @param {Function} fn the callee function
* @param {string} name function name (optional)
* @returns {Function}
*/
declare function measureTimeFn(_this: any, fn: Function, name?: string): Function;
/**
* measue memory userage
* @returns {Function} print the memeory useage step by step
*/
declare function measureMemFn(): Function;
declare const _default: {
measureTimeFn: typeof measureTimeFn;
measureMemFn: typeof measureMemFn;
};
export default _default;