1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-09-30 23:26:42 +02:00
Files
flexsearch/dist/module-debug/profiler.js
2025-03-17 01:12:58 +01:00

15 lines
319 B
JavaScript

import { create_object } from "./common.js";
const data = create_object();
/**
* @param {!string} name
*/
export default function tick(name) {
/** @type {!Object<string, number>} */
const profiler = data.profiler || (data.profiler = {});
profiler[name] || (profiler[name] = 0);
profiler[name]++;
}