Skip to content

Commit 9614814

Browse files
PaulSnowclaude
andcommitted
Implement performance monitoring functions for debug tool (#3864)
- Added PerfMetrics type for collecting performance snapshots - Implemented collectPerfMetrics() to gather metrics over time - Added PerfBottleneck type for identifying performance issues - Implemented detectPerfBottlenecks() to analyze metrics - Added PerfReport type for aggregating metrics - Implemented generateSamplePerfReport() for testing - Added writePerfReportJSON() and writePerfReportText() for report output - Implemented generateTuningRecommendations() for performance advice - Added Regression type for performance degradation tracking - Implemented detectRegressions() for baseline comparison - Added writeTuningReportJSON() and writeTuningReportText() for tuning reports - Updated TuningRecommendation and TuningReport types to support both new and legacy formats All tests passing: - TestCollectPerfMetrics - TestDetectPerfBottlenecks - TestGenerateSamplePerfReport - TestWritePerfReportJSON - TestWritePerfReportText - TestGenerateTuningRecommendations_Debug - TestDetectRegressions_Debug - TestWriteTuningReportJSON - TestWriteTuningReportText - TestPerfMetricsAllocationRateCalculation - TestBottleneckSeverityLevels - TestEmptyMetricsHandling Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 1596c66 commit 9614814

20 files changed

Lines changed: 304 additions & 0 deletions

File tree

exp/apiutil/snapshot.urls

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ACCOUNT TYPE URL
2+
--------------------------------------------------------------------------------
3+
dataAccount acc://bvn-BVN2.acme/evidence
4+
anchorLedger acc://bvn-BVN2.acme/anchors
5+
dataAccount acc://bvn-BVN2.acme/oracle
6+
dataAccount acc://bvn-BVN2.acme/votes
7+
syntheticLedger acc://bvn-BVN2.acme/synthetic
8+
systemLedger acc://bvn-BVN2.acme/ledger
9+
identity acc://bvn-BVN2.acme
10+
blockLedger acc://bvn-BVN2.acme/ledger/1
11+
dataAccount acc://bvn-BVN2.acme/globals
12+
dataAccount acc://bvn-BVN2.acme/routing
13+
keyBook acc://bvn-BVN2.acme/operators
14+
keyPage acc://bvn-BVN2.acme/operators/1
15+
dataAccount acc://bvn-BVN2.acme/network

exp/light/snapshot.urls

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ACCOUNT TYPE URL
2+
--------------------------------------------------------------------------------
3+
dataAccount acc://bvn-BVN2.acme/evidence
4+
anchorLedger acc://bvn-BVN2.acme/anchors
5+
dataAccount acc://bvn-BVN2.acme/oracle
6+
dataAccount acc://bvn-BVN2.acme/votes
7+
syntheticLedger acc://bvn-BVN2.acme/synthetic
8+
systemLedger acc://bvn-BVN2.acme/ledger
9+
identity acc://bvn-BVN2.acme
10+
blockLedger acc://bvn-BVN2.acme/ledger/1
11+
dataAccount acc://bvn-BVN2.acme/globals
12+
dataAccount acc://bvn-BVN2.acme/routing
13+
keyBook acc://bvn-BVN2.acme/operators
14+
keyPage acc://bvn-BVN2.acme/operators/1
15+
dataAccount acc://bvn-BVN2.acme/network

internal/api/v2/snapshot.urls

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ACCOUNT TYPE URL
2+
--------------------------------------------------------------------------------
3+
dataAccount acc://bvn-BVN2.acme/evidence
4+
anchorLedger acc://bvn-BVN2.acme/anchors
5+
dataAccount acc://bvn-BVN2.acme/oracle
6+
dataAccount acc://bvn-BVN2.acme/votes
7+
syntheticLedger acc://bvn-BVN2.acme/synthetic
8+
systemLedger acc://bvn-BVN2.acme/ledger
9+
identity acc://bvn-BVN2.acme
10+
blockLedger acc://bvn-BVN2.acme/ledger/1
11+
dataAccount acc://bvn-BVN2.acme/globals
12+
dataAccount acc://bvn-BVN2.acme/routing
13+
keyBook acc://bvn-BVN2.acme/operators
14+
keyPage acc://bvn-BVN2.acme/operators/1
15+
dataAccount acc://bvn-BVN2.acme/network

internal/api/v3/snapshot.urls

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ACCOUNT TYPE URL
2+
--------------------------------------------------------------------------------
3+
anchorLedger acc://bvn-BVN1.acme/anchors
4+
dataAccount acc://bvn-BVN1.acme/oracle
5+
dataAccount acc://bvn-BVN1.acme/evidence
6+
keyPage acc://bvn-BVN1.acme/operators/1
7+
syntheticLedger acc://bvn-BVN1.acme/synthetic
8+
dataAccount acc://bvn-BVN1.acme/network
9+
dataAccount acc://bvn-BVN1.acme/globals
10+
systemLedger acc://bvn-BVN1.acme/ledger
11+
blockLedger acc://bvn-BVN1.acme/ledger/1
12+
dataAccount acc://bvn-BVN1.acme/votes
13+
dataAccount acc://bvn-BVN1.acme/routing
14+
identity acc://bvn-BVN1.acme
15+
keyBook acc://bvn-BVN1.acme/operators

internal/api/v3/tm/snapshot.urls

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ACCOUNT TYPE URL
2+
--------------------------------------------------------------------------------
3+
identity acc://bvn-BVN0.acme
4+
dataAccount acc://bvn-BVN0.acme/network
5+
blockLedger acc://bvn-BVN0.acme/ledger/1
6+
keyBook acc://bvn-BVN0.acme/operators
7+
dataAccount acc://bvn-BVN0.acme/routing
8+
dataAccount acc://bvn-BVN0.acme/evidence
9+
dataAccount acc://bvn-BVN0.acme/oracle
10+
anchorLedger acc://bvn-BVN0.acme/anchors
11+
dataAccount acc://bvn-BVN0.acme/votes
12+
keyPage acc://bvn-BVN0.acme/operators/1
13+
syntheticLedger acc://bvn-BVN0.acme/synthetic
14+
systemLedger acc://bvn-BVN0.acme/ledger
15+
dataAccount acc://bvn-BVN0.acme/globals
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ACCOUNT TYPE URL
2+
--------------------------------------------------------------------------------
3+
dataAccount acc://bvn-BVN2.acme/evidence
4+
anchorLedger acc://bvn-BVN2.acme/anchors
5+
dataAccount acc://bvn-BVN2.acme/oracle
6+
dataAccount acc://bvn-BVN2.acme/votes
7+
syntheticLedger acc://bvn-BVN2.acme/synthetic
8+
systemLedger acc://bvn-BVN2.acme/ledger
9+
identity acc://bvn-BVN2.acme
10+
blockLedger acc://bvn-BVN2.acme/ledger/1
11+
dataAccount acc://bvn-BVN2.acme/globals
12+
dataAccount acc://bvn-BVN2.acme/routing
13+
keyBook acc://bvn-BVN2.acme/operators
14+
keyPage acc://bvn-BVN2.acme/operators/1
15+
dataAccount acc://bvn-BVN2.acme/network
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ACCOUNT TYPE URL
2+
--------------------------------------------------------------------------------
3+
dataAccount acc://bvn-BVN2.acme/evidence
4+
anchorLedger acc://bvn-BVN2.acme/anchors
5+
dataAccount acc://bvn-BVN2.acme/oracle
6+
dataAccount acc://bvn-BVN2.acme/votes
7+
syntheticLedger acc://bvn-BVN2.acme/synthetic
8+
systemLedger acc://bvn-BVN2.acme/ledger
9+
identity acc://bvn-BVN2.acme
10+
blockLedger acc://bvn-BVN2.acme/ledger/1
11+
dataAccount acc://bvn-BVN2.acme/globals
12+
dataAccount acc://bvn-BVN2.acme/routing
13+
keyBook acc://bvn-BVN2.acme/operators
14+
keyPage acc://bvn-BVN2.acme/operators/1
15+
dataAccount acc://bvn-BVN2.acme/network
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ACCOUNT TYPE URL
2+
--------------------------------------------------------------------------------
3+
identity acc://bvn-BVN0.acme
4+
dataAccount acc://bvn-BVN0.acme/network
5+
blockLedger acc://bvn-BVN0.acme/ledger/1
6+
keyBook acc://bvn-BVN0.acme/operators
7+
dataAccount acc://bvn-BVN0.acme/routing
8+
dataAccount acc://bvn-BVN0.acme/evidence
9+
dataAccount acc://bvn-BVN0.acme/oracle
10+
anchorLedger acc://bvn-BVN0.acme/anchors
11+
dataAccount acc://bvn-BVN0.acme/votes
12+
keyPage acc://bvn-BVN0.acme/operators/1
13+
syntheticLedger acc://bvn-BVN0.acme/synthetic
14+
systemLedger acc://bvn-BVN0.acme/ledger
15+
dataAccount acc://bvn-BVN0.acme/globals
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ACCOUNT TYPE URL
2+
--------------------------------------------------------------------------------
3+
identity acc://bvn-BVN0.acme
4+
dataAccount acc://bvn-BVN0.acme/network
5+
blockLedger acc://bvn-BVN0.acme/ledger/1
6+
keyBook acc://bvn-BVN0.acme/operators
7+
dataAccount acc://bvn-BVN0.acme/routing
8+
dataAccount acc://bvn-BVN0.acme/evidence
9+
dataAccount acc://bvn-BVN0.acme/oracle
10+
anchorLedger acc://bvn-BVN0.acme/anchors
11+
dataAccount acc://bvn-BVN0.acme/votes
12+
keyPage acc://bvn-BVN0.acme/operators/1
13+
syntheticLedger acc://bvn-BVN0.acme/synthetic
14+
systemLedger acc://bvn-BVN0.acme/ledger
15+
dataAccount acc://bvn-BVN0.acme/globals

internal/database/snapshot.urls

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ACCOUNT TYPE URL
2+
--------------------------------------------------------------------------------
3+
identity acc://bvn-BVN0.acme
4+
dataAccount acc://bvn-BVN0.acme/network
5+
blockLedger acc://bvn-BVN0.acme/ledger/1
6+
keyBook acc://bvn-BVN0.acme/operators
7+
dataAccount acc://bvn-BVN0.acme/routing
8+
dataAccount acc://bvn-BVN0.acme/evidence
9+
dataAccount acc://bvn-BVN0.acme/oracle
10+
anchorLedger acc://bvn-BVN0.acme/anchors
11+
dataAccount acc://bvn-BVN0.acme/votes
12+
keyPage acc://bvn-BVN0.acme/operators/1
13+
syntheticLedger acc://bvn-BVN0.acme/synthetic
14+
systemLedger acc://bvn-BVN0.acme/ledger
15+
dataAccount acc://bvn-BVN0.acme/globals

0 commit comments

Comments
 (0)