question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Show build durations using sphinx.ext.duration

See original GitHub issue

Details

This is a follow-up from https://github.com/readthedocs/readthedocs.org/issues/7648#issuecomment-724953115 .

cc @saimn and @humitos

Expected Result

When sphinx.ext.duration (which has been available since Sphinx 2.4 and we are using 3.x) is enabled by adding it to extensions list in conf.py, we expect an output like this in the build log:

====================== slowest reading durations =======================
16.173 coordinates/index
14.260 visualization/wcsaxes/ticks_labels_grid
12.112 visualization/rgb
11.582 visualization/wcsaxes/overlays
9.496 timeseries/index
7.912 stats/ripley
6.881 visualization/wcsaxes/slicing_datacubes
...
1.543 modeling/example-fitting-line
1.494 timeseries/io

Actual Result

“slowest reading durations” isn’t shown. ~I don’t have that commit to prove this anymore, but I will recreate it and link it back here.~ See astropy/astropy#11028

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
saimncommented, Nov 12, 2020

Hmm weird, since it works locally (for astropy). Not sure what could cause a difference on RTD.

1reaction
pllimcommented, Nov 12, 2020

Well, don’t have to remove that label so soon, bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sphinx.ext.duration – Measure durations of Sphinx processing
This extension measures durations of Sphinx processing and show its result at end of the build. It is useful for inspecting what document...
Read more >
sphinx.pdf - Read the Docs
Sphinx is a documentation generator or a tool that translates a set of plain text source files into various output formats,.
Read more >
Extending VSCode: Build Documentation with Python Sphinx
A hands-on session to illustrate the rich ecosystem around Python Sphinx tools and how to build up any kind of documentation for your ......
Read more >
[22] Sphinx for Python Documentation Tutorial (Melissa Weber)
Talk outline - PART 1: How Sphinx, how it is built and how it works - PART 2: Application: an example pull request,...
Read more >
TUTORIAL / Mariatta / Writing Documentation with Sphinx and ...
The success of Python and open source libraries is not separable from the availability of good documentation. Reading documentation is one ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found