Intro
Crée un rapport HTML (avec une arborescence), en se basant sur line_profiler : https://github.com/pyutils/line_profiler, fork de https://github.com/rkern/line_profiler
TODO
- Several classes in one file : bug...
Utilisation dans les tests unitaires :
A ajouter a un test unittaire unittest, et à lancer avec $ coverage run -m unittest test_str.py
Dans :
[...]
import html_report_line_profiler as hr
class Test_CeciEstUnTest(unittest.TestCase):
def setUp(self):
# Code execute avant chaque test
[...] # ce que l'on veut
# Profiler :
self.profiler, self.delete_profiling_env = hr.setUp_profiler(castList)
#endDef
# ...
def tearDown(self):
# Code executé après chaque test
# Terminer le profiler en premier
# Create basename
hr.proffile_basename = classname2basename(
file_name = __file__,
class_name = self.__class__.__name__,
method_name = self._testMethodName
)
# Launch the profiler out
hr.tearDown_profiler(
profiler=self.profiler,
proffile_basename=proffile_basename,
output_folder=output_folder,
delete_profiling_env=self.delete_profiling_env
)
#
# [...] # Les autres commandes
#endDef
#endClass
Rapport HTML
Pour lancer ensuite le post-traitement (rapport html) :
$ profiler_html_report.py
Remarques
-d = --input-dir(default : './profile')-o = --output-dir(default : './profile_html')
Metadata
Release files for html-report-line-profiler 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| html_report_line_profiler-0.1.1.tar.gz | 15.0 kB | Without provenance | Details for html_report_line_profiler-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| html_report_line_profiler-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for html_report_line_profiler-0.1.1-py3-none-any.whl |
Total release size: 33.4 kB
Release files / html_report_line_profiler-0.1.1.tar.gz
| Download URL | html_report_line_profiler-0.1.1.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
797f7e4b4283dd5b4da46e23d8473dfecbea46d9526f3905c72fd91f80b95a13
|
|
BLAKE2b-256 checksum How to use checksums |
ad743e1e4189fe2ee332fba4d38d4e9979d4639154fa62f92cf608e7464d2865
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / html_report_line_profiler-0.1.1-py3-none-any.whl
| Download URL | html_report_line_profiler-0.1.1-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3766420bb52577200d9fd69c0cfba50fe4337ba90fda0eb8ead7b820c1d70e0d
|
|
BLAKE2b-256 checksum How to use checksums |
fadb57478307a50613bf3eec038843f990861630ecd2aabc280e5d862e2b62b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for html-report-line-profiler 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.