pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
https://pingcap.com
Apache License 2.0
37k stars 5.82k forks source link

Better Continuous Profiling #52318

Open hawkingrei opened 6 months ago

hawkingrei commented 6 months ago

Enhancement

Continuous profiling does not provide a good experience in TiDB; it lacks stack search capabilities and is not convenient for examining profiles over extended periods. It also does not support visualization for goroutines. Here, we can leverage the infrastructure of Pyroscope to implement this system, which will be far more reliable than what we have developed on our own.

for example, we can find this which can be optimized.

image
hawkingrei commented 6 months ago

ref https://github.com/pingcap/tidb/issues/52321

hawkingrei commented 3 months ago

ref https://github.com/pingcap/tidb/issues/53861

hawkingrei commented 3 months ago

ref https://github.com/pingcap/tidb/issues/53866

hawkingrei commented 3 months ago

ref https://github.com/pingcap/tidb/issues/53868