Skip to content

Commit ee50bae

Browse files
committed
feat: add pprof api
1 parent 5c1e07c commit ee50bae

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

integration_tests/pprof/stress.py renamed to integration_tests/pprof_heap/stress.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def generate_random_string(length):
6767
return ''.join(random.choice(string.ascii_letters + string.digits) for _ in range(length))
6868

6969

70-
def create_test_tables(count=3):
70+
def create_test_tables(count=5):
7171
table_names = []
7272

7373
for t in range(count):

src/server/src/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ impl Service {
646646
.and_then(
647647
|duration_sec: u64, profiler: Arc<Profiler>, runtime: Arc<Runtime>| async move {
648648
let handle = runtime.spawn_blocking(move || {
649-
profiler.dump_heap_pprof(duration_sec).context(ProfileHeap)
649+
profiler.dump_heap_pprof(duration_sec).context(PprofHeap)
650650
});
651651
let result = handle.await.context(JoinAsyncTask);
652652
match result {

0 commit comments

Comments
 (0)