MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / report_usage

Method report_usage

fastdeploy/usage/usage_lib.py:280–289  ·  view source on GitHub ↗
(self, fd_config: FDConfig, extra_kvs: dict[str, Any] | None = None)

Source from the content-addressed store, hash-verified

278 self.config: str | None = None
279
280 def report_usage(self, fd_config: FDConfig, extra_kvs: dict[str, Any] | None = None) -> None:
281 t = Thread(
282 target=self._report_usage_worker,
283 args=(
284 fd_config,
285 extra_kvs,
286 ),
287 daemon=True,
288 )
289 t.start()
290
291 def _report_usage_worker(self, fd_config: FDConfig, extra_kvs: dict[str, Any]) -> None:
292 self._report_usage_once(fd_config, extra_kvs)

Callers 1

report_usage_statsFunction · 0.95

Calls 1

startMethod · 0.45

Tested by

no test coverage detected