"build/htmlhelp/pydoc.hhp project file."
.PHONY: latex
+latex: _ensure-sphinxcontrib-svg2pdfconverter
latex: BUILDER = latex
latex: build
@echo "Build finished; the LaTeX files are in build/latex."
@echo "Build finished and archived!"
.PHONY: dist-pdf
-dist-pdf:
+dist-pdf: _ensure-sphinxcontrib-svg2pdfconverter
# archive the A4 latex
@echo "Building LaTeX (A4 paper)..."
mkdir -p dist
_ensure-sphinx-autobuild:
$(MAKE) _ensure-package PACKAGE=sphinx-autobuild
+.PHONY: _ensure-sphinxcontrib-svg2pdfconverter
+_ensure-sphinxcontrib-svg2pdfconverter:
+ $(MAKE) _ensure-package PACKAGE=sphinxcontrib-svg2pdfconverter
+
.PHONY: check
check: _ensure-pre-commit
$(VENVDIR)/bin/python3 -m pre_commit run --all-files
python -m profiling.sampling run --live script.py
python -m profiling.sampling attach --live 12345
-.. figure:: tachyon-live-mode-2.gif
- :alt: Tachyon live mode showing all threads
- :align: center
- :width: 100%
+.. only:: not latex
+
+ .. figure:: tachyon-live-mode-2.gif
+ :alt: Tachyon live mode showing all threads
+ :align: center
+ :width: 100%
Live mode displays real-time profiling statistics, showing combined
data from multiple threads in a multi-threaded application.
function. This panel displays which bytecode instructions are executing most
frequently, including specialized variants and their base opcodes.
-.. figure:: tachyon-live-mode-1.gif
- :alt: Tachyon live mode with opcode panel
- :align: center
- :width: 100%
+.. only:: not latex
+
+ .. figure:: tachyon-live-mode-1.gif
+ :alt: Tachyon live mode with opcode panel
+ :align: center
+ :width: 100%
Live mode with ``--opcodes`` enabled shows an opcode panel with a bytecode
instruction breakdown for the selected function.