| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
An open-source Python library for identifying bottlenecks in code. It includes function profiling, data exports, logging, and line-by-line profiling for more granular control.
You can install FuncProfiler using pip:
pip install funcprofilerFuncProfiler supports Python 3.6 and later.
| Format | function_profile | line_by_line_profile |
|---|---|---|
| txt | ✅ | ❌ |
| json | ✅ | ✅ |
| csv | ✅ | ✅ |
| html | ✅ | ✅ |
| xml | ✅ | ✅ |
| md | ✅ | ✅ |
| yaml | ✅ | ✅ |
| toml | ✅ | ✅ |
from funcprofiler import function_profile
@function_profile(export_format="html", shared_log=True, log_level="debug")
def some_function():
return "Hello World."
message = some_function()from funcprofiler import line_by_line_profile
@line_by_line_profile(shared_log=True, enabled=True)
def some_complicated_function(n):
total = 0
for i in range(n):
for j in range(i):
total += (i * j) ** 0.5
return total
total = some_complicated_function(1000)Contributions are welcome! Please open an issue or submit a pull request on GitHub.
FuncProfiler is released under the MIT License (Modified). See the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |