flopscope.
API Reference

Accounting

Analytical cost estimators for planning FLOP usage before you execute a counted operation.

Cost estimators

Analytical helpers for estimating FLOPs without executing a counted operation.