repo_description: Next-generation full-text search library for Browser and Node.js
repo_topics: elasticsearch full-text-search fulltext-search fuzzy fuzzy-search javascript javascript-library nodejs open-source search search-algorithm search-engine search-in-text searching searching-algorithms web web-worker
code: // COMPILER BLOCK -->
  import { PROFILER } from "./config.js";
  // <-- COMPILER BLOCK
  import { create_object } from "./common.js";
  const data = create_object();
  
  if(PROFILER){
      if(typeof window !== "undefined"){
          window.profiler = data;
      }
  }
  
  /**
   * @param {!string} name
   */
  
  export default function tick(name){
      if(PROFILER){
          /** @type {!Object<string, number>} */
          const profiler = data; //data["profiler"] || (data["profiler"] = {});
          profiler[name] || (profiler[name] = 0);
          profiler[name]++;
      }
  }
  