File: pass_timings.rst

package info (click to toggle)
llvmlite 0.46.0-0.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,140 kB
  • sloc: python: 13,605; cpp: 3,192; makefile: 185; sh: 168
file content (29 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
============
Pass Timings
============

.. currentmodule:: llvmlite.binding

LLVM provides functionality to time optimization and analysis passes.

New Pass Manager APIs
=====================

See :meth:`PassBuilder.start_pass_timing` and
:meth:`PassBuilder.finish_pass_timing` in :doc:`optimization-passes`.

Legacy Pass Manager APIs
========================


.. function:: set_time_passes(enable)

    Enable or disable the pass timers.


.. function:: report_and_reset_timings()

    Returns the pass timings report and resets the LLVM internal timers.

    Pass timers are enabled by ``set_time_passes()``. If the timers are not
    enabled, this function will return an empty string.