class_docstr: Counts the number of queries sent to Airflow Database in a given context.
  
  Does not support multiple processes. When a new process is started in context, its queries will
  not be included.
  
  :param print_fn: The function used to display the text. By default, ``builtins.print``
class_docstr_tok: ["Counts","the","number","of","queries","sent","to","Airflow","Database","in","a","given","context",".","Does","not","support","multiple","processes",".","When","a","new","process","is","started","in","context",",","its","queries","will","not","be","included",".",":","param","print_fn",":","The","function","used","to","display","the","text",".","By","default",",","``","builtins.print","``"]
code: def __init__(self, print_fn: Callable[[str], None] = print):
      self.result = CountQueriesResult()
      self.print_fn = print_fn
  
file_path: airflow/tests/test_utils/perf/perf_kit/sqlalchemy.py
imports: from __future__ import annotations
  import os
  import time
  import traceback
  from typing import Callable
  from sqlalchemy import event
label_desc: Use image node_id 1 to create a new CountQueries object  with example: obj = CountQueries(print_fn)