File: Makefile

package info (click to toggle)
python-picologging 0.9.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 752 kB
  • sloc: python: 3,921; cpp: 2,430; makefile: 41; sh: 18
file content (17 lines) | stat: -rw-r--r-- 926 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
profiles:
	mkdir -p .profiles
	PYTHONMALLOC=malloc memray run --trace-python-allocators -o .profiles/memray_logrecord.py.bin -f --native memray_logrecord.py
	PYTHONMALLOC=malloc memray run --trace-python-allocators -o .profiles/memray_format_exception.py.bin -f --native memray_format_exception.py
	PYTHONMALLOC=malloc memray run --trace-python-allocators -o .profiles/memray_logger.py.bin -f --native memray_logger.py
	PYTHONMALLOC=malloc memray run --trace-python-allocators -o .profiles/memray_litestar.py.bin -f --native memray_litestar.py
	memray flamegraph --leaks -f .profiles/memray_logrecord.py.bin
	memray flamegraph --leaks -f .profiles/memray_format_exception.py.bin
	memray flamegraph --leaks -f .profiles/memray_logger.py.bin
	memray flamegraph --leaks -f .profiles/memray_litestar.py.bin
	python -m http.server --directory .profiles 8000

clean:
	rm -rf .profiles

snapshot:
	cp -R .profiles .profiles-snapshot