pingcap / tidb

TiDB - the open-source, cloud-native, distributed SQL database designed for modern applications.
https://pingcap.com
Apache License 2.0
37.41k stars 5.85k forks source link

Better Continuous Profiling #52318

Open hawkingrei opened 8 months ago

hawkingrei commented 8 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 8 months ago

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

hawkingrei commented 5 months ago

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

hawkingrei commented 5 months ago

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

hawkingrei commented 5 months ago

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