Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (33 loc) · 1.43 KB
/
Copy pathMakefile
File metadata and controls
45 lines (33 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
test: test-go test-js
test-go:
go test -race -timeout 30s ./pkg/...
test-js:
bun run test:integ:node
test-discovery:
tsx experiments/discovery/discover-path.menv.ts
test-discovery-node:
tsx experiments/discovery/discover-path.menv.ts --env=node
test-debug-discovery-node:
tsx experiments/discovery/discover-path.menv.ts --env=node --debug=libp2p:discovery:pubsub # 2>&1 | tee tmp/node-debug.log | tail -n 50 || true
@echo "📄 Full Debug logs saved to tmp/node-debug.log"
@echo "📊 Log file size: $$(wc -l < tmp/node-debug.log) lines"
test-discovery-chrome:
tsx experiments/discovery/discover-path.menv.ts --env=chrome
test-debug-discovery-chrome:
tsx experiments/discovery/discover-path.menv.ts --env=chrome --debug=libp2p:discovery:pubsub # 2>&1 | tee tmp/chrome-debug.log | tail -n 50 || true
@echo "📄 Full Debug logs saved to tmp/chrome-debug.log"
@echo "📊 Log file size: $$(wc -l < tmp/chrome-debug.log) lines"
test-discovery-firefox:
tsx experiments/discovery/discover-path.menv.ts --env=firefox
test-browser-demo:
go run cmd/util-server/main.go & bun experiments/discovery/discover-browser-demo.html
profile:
go test -memprofile=mem.prof -cpuprofile=cpu.prof -timeout 60s github.com/omgolab/drpc/pkg/drpc/integration_test
analyze:
@echo "=== Memory Analysis ==="
@go tool pprof -top -cum mem.prof | head -15
@echo "\n=== CPU Analysis ==="
@go tool pprof -top -cum cpu.prof | head -15
clean:
rm -f *.prof
rm -rf tmp/*.log