def generate_profiler_sources(func_attrs, op_class, workdir, shape_template):
    """
    Generate profiler sources for the func.
    """
    target = backend.target.Target.current()
    func_key = "{target}.{op}.gen_profiler".format(
        target=target.name(),
        op=func_attrs["op"],
    )
    gen_profiler_func = registry.get(func_key)

    profiler_filename = get_profiler_filename(func_attrs, op_class)
    _LOGGER.info(f"generating {profiler_filename=}")

    return gen_profiler_func(
        func_attrs,
        workdir,
        profiler_filename,
        shape_template,
    )
Generate profiler sources for the func.
python/aitemplate/compiler/ops/conv/conv_common.py