pyroscope 1.0.2

Pyroscope Profiler Agent for continuous profiling of Rust, Python and Ruby applications.
Documentation

COMMIT = $(shell git rev-parse --short HEAD)
DOCKER_EXTRA ?=
DOCKER_BUILDKIT=1
BUMP ?= fix



.PHONY: lib/test
lib/test:
	cargo  test --manifest-path Cargo.toml

.PHONY: pprofrs/test
pprofrs/test:
	cargo  test --manifest-path Cargo.toml --features backend-pprof-rs


.PHONY: ffikit/test
ffikit/test:
	cargo  test --manifest-path pyroscope_ffi/ffikit/Cargo.toml

.PHONY: test
test: pprofrs/test  lib/test ffikit/test


.PHONY: rust/fmt
rust/fmt:
	cargo fmt --all


.PHONY: rust/fmt/check
rust/fmt/check:
	cargo fmt --all --check


.PHONY: ruby/version/bump
ruby/version/bump:
	BUMP=$(BUMP) bash ci/bump_ffi_version.sh ruby


.PHONY: python/version/bump
python/version/bump:
	BUMP=$(BUMP) bash ci/bump_ffi_version.sh python


.PHONY: ffi/python/header
ffi/python/header:
	cd pyroscope_ffi/python/rust && cbindgen --config cbindgen.toml --output include/pyroscope_ffi.h


.PHONY: ffi/python/cffi
ffi/python/cffi:
	python pyroscope_ffi/python/scripts/tests/compile_ffi.py


.PHONY: ffi/ruby/header
ffi/ruby/header:
	cd pyroscope_ffi/ruby/ext/rbspy && cbindgen --config cbindgen.toml --output include/rbspy.h


include ffi.mk