mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-09-30 23:26:42 +02:00
15 lines
319 B
JavaScript
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]++;
|
|
} |