Issue
We start monitoring by activating the tool_id of the sys.monitoring api
sys.monitoring.use_tool_id(self.tool_id, "lblprof-monitor")
But in case when the lblprof.start_tracing() would be called several times (ex: I put it at the start of my streamlit app), I would get the error tool_id already assigned
Solution
Check if the tool is already assigned and skip this line if is is
Issue
We start monitoring by activating the tool_id of the sys.monitoring api
But in case when the lblprof.start_tracing() would be called several times (ex: I put it at the start of my streamlit app), I would get the error tool_id already assigned
Solution
Check if the tool is already assigned and skip this line if is is