-
Notifications
You must be signed in to change notification settings - Fork 88
This pull request fixes multiple Sphinx documentation warnings in the pyperf docs. #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
amritamishra01
wants to merge
4
commits into
psf:main
Choose a base branch
from
amritamishra01:fix-doc-warnings
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+41
−26
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
ab0a4c3
Fix Sphinx documentation warnings and enable Intersphinx
amritamishra01 bca9501
Revert unrelated documentation changes
amritamishra01 7e85ac8
Fix: remove is_worker documentation
amritamishra01 6fb1a8e
fix: address all maintainer feedback (formatting, modules, links, cod…
amritamishra01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| Changelog | ||
| ========= | ||
| .. module:: pyperf | ||
| :noindex: | ||
|
|
||
| Version 2.9.0 (2025-03-03) | ||
| -------------------------- | ||
|
|
@@ -180,7 +182,7 @@ a Python binding called "perf" as well. | |
| Version 1.6.0 (2019-01-11) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't you use |
||
| -------------------------- | ||
|
|
||
| * Add *teardown* optional parameter to :class:`Runner.timeit` and ``--teardown`` | ||
| * Add *teardown* optional parameter to ``Runner.timeit`` and ``--teardown`` | ||
| option to the :ref:`perf timeit <timeit_cmd>` command. Patch by **Alex | ||
| Khomchenko**. | ||
| * ``Runner.timeit(stmt)`` can now be used to use the statement as the benchmark | ||
|
|
@@ -561,8 +563,8 @@ Version 0.7.10 (2016-09-17) | |
| Version 0.7.9 (2016-09-17) | ||
| -------------------------- | ||
|
|
||
| * Add :meth:`Benchmark.get_unit` method | ||
| * Add :meth:`BenchmarkSuite.get_metadata` method | ||
| * Add ``Benchmark.get_unit`` method | ||
| * Add ``BenchmarkSuite.get_metadata`` method | ||
| * metadata: add ``nohz_full`` and ``isolated`` to ``cpu_config`` | ||
| * add ``--affinity`` option to the ``metadata`` command | ||
| * ``convert``: fix ``--remove-all-metadata``, keep the unit | ||
|
|
@@ -614,7 +616,7 @@ Version 0.7.4 (2016-08-18) | |
|
|
||
| * Support PyPy | ||
| * metadata: add ``mem_max_rss`` and ``python_hash_seed`` | ||
| * Add :func:`perf.python_implementation` and :func:`perf.python_has_jit` | ||
| * Add ``perf.python_implementation`` and ``perf.python_has_jit`` | ||
| functions | ||
| * In workers, calibration samples are now stored as warmup samples. | ||
| * With a JIT (PyPy), the calibration is now done in each worker. The warmup | ||
|
|
@@ -711,7 +713,7 @@ Changes: | |
| and TextRunner. | ||
| * A single JSON file can now contain multiple benchmarks | ||
| * Add a dependency to the ``six`` module | ||
| :meth:`Benchmark.add_run` now raises an exception if a sample is zero. | ||
| ``Benchmark.add_run`` now raises an exception if a sample is zero. | ||
| * Benchmark.name becomes a property and is now stored in metadata | ||
| * TextRunner now uses powers of 2, rather than powers of 10, to calibrate the | ||
| number of loops | ||
|
|
@@ -725,9 +727,9 @@ Changes: | |
| * The ``hist`` command now accepts multiple files | ||
| * ``hist`` and ``hist_scipy`` commands got a new ``--bins`` option | ||
| * Replace mean with median | ||
| * Add :meth:`perf.Benchmark.median` method, remove ``Benchmark.mean()`` method | ||
| * Add ``perf.Benchmark.median`` method, remove ``Benchmark.mean()`` method | ||
| * ``Benchmark.get_metadata()`` method removed: use directly the | ||
| :attr:`perf.Benchmark.metadata` attribute | ||
| ``perf.Benchmark.metadata`` attribute | ||
| * Add ``timer`` metadata. ``python_version`` now also contains the architecture | ||
| (32 or 64 bits). | ||
|
|
||
|
|
@@ -774,23 +776,22 @@ Version 0.3 (2016-06-10) | |
| * If TextRunner detects isolated CPUs, it sets automatically the CPU affinity | ||
| to these isolated CPUs | ||
| * Add ``--json-file`` command line option | ||
| * Add :meth:`TextRunner.bench_sample_func` method | ||
| * Add ``TextRunner.bench_sample_func`` method | ||
| * Add examples of the API to the documentation. Split also the documentation | ||
| into subpages. | ||
| * Add metadata ``cpu_affinity`` | ||
| * Add :func:`perf.is_significant` function | ||
| * Move metadata from :class:`~perf.Benchmark` to ``RunResult`` | ||
| * Rename the ``Results`` class to :class:`~perf.Benchmark` | ||
| * Add :attr:`~TextRunner.inner_loops` attribute to | ||
| :class:`TextRunner`, used for microbenchmarks when an | ||
| instruction is manually duplicated multiple times | ||
| * Add ``perf.is_significant`` function | ||
| * Move metadata from ``perf.Benchmark`` to ``RunResult`` | ||
| * Rename the ``Results`` class to ``perf.Benchmark`` | ||
| * Add ``TextRunner.inner_loops`` attribute to | ||
| ``TextRunner``, used for microbenchmarks when an | ||
|
|
||
| Version 0.2 (2016-06-07) | ||
| ------------------------ | ||
|
|
||
| * use JSON to exchange results between processes | ||
| * new ``python3 -m perf`` CLI | ||
| * new :class:`TextRunner` class | ||
| * new ``TextRunner`` class | ||
| * huge enhancement of the timeit module | ||
| * timeit has a better output format in verbose mode and now also supports a | ||
| ``-vv`` (very verbose) mode. Minimum and maximum are not more shown in | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,8 +2,10 @@ | |
|
|
||
| Runner CLI | ||
| ========== | ||
| .. module:: pyperf | ||
| :noindex: | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't you use |
||
| Command line options of the :class:`Runner` class. | ||
| Command line options of the :class:`pyperf.Runner` class. | ||
|
|
||
| Loop iterations | ||
| --------------- | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.