forked from AFPy/python-docs-fr
239 lines
7.2 KiB
Plaintext
239 lines
7.2 KiB
Plaintext
# Copyright (C) 2001-2018, Python Software Foundation
|
|
# For licence information, see README file.
|
|
#
|
|
msgid ""
|
|
msgstr ""
|
|
"Project-Id-Version: Python 3\n"
|
|
"Report-Msgid-Bugs-To: \n"
|
|
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
|
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
|
|
"Language: fr\n"
|
|
"MIME-Version: 1.0\n"
|
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
#: library/trace.rst:2
|
|
msgid ":mod:`trace` --- Trace or track Python statement execution"
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:7
|
|
msgid "**Source code:** :source:`Lib/trace.py`"
|
|
msgstr "**Code source :** :source:`Lib/abc.py`"
|
|
|
|
#: library/trace.rst:11
|
|
msgid ""
|
|
"The :mod:`trace` module allows you to trace program execution, generate "
|
|
"annotated statement coverage listings, print caller/callee relationships and "
|
|
"list functions executed during a program run. It can be used in another "
|
|
"program or from the command line."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:19
|
|
msgid "`Coverage.py <https://coverage.readthedocs.io/>`_"
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:19
|
|
msgid ""
|
|
"A popular third-party coverage tool that provides HTML output along with "
|
|
"advanced features such as branch coverage."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:25
|
|
msgid "Command-Line Usage"
|
|
msgstr "Utilisation en ligne de commande."
|
|
|
|
#: library/trace.rst:27
|
|
msgid ""
|
|
"The :mod:`trace` module can be invoked from the command line. It can be as "
|
|
"simple as ::"
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:32
|
|
msgid ""
|
|
"The above will execute :file:`somefile.py` and generate annotated listings "
|
|
"of all Python modules imported during the execution into the current "
|
|
"directory."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:39
|
|
msgid "Display usage and exit."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:43
|
|
msgid "Display the version of the module and exit."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:45
|
|
msgid "Added ``--module`` option that allows to run an executable module."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:49
|
|
msgid "Main options"
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:51
|
|
msgid ""
|
|
"At least one of the following options must be specified when invoking :mod:"
|
|
"`trace`. The :option:`--listfuncs <-l>` option is mutually exclusive with "
|
|
"the :option:`--trace <-t>` and :option:`--count <-c>` options. When :option:"
|
|
"`--listfuncs <-l>` is provided, neither :option:`--count <-c>` nor :option:"
|
|
"`--trace <-t>` are accepted, and vice versa."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:61
|
|
msgid ""
|
|
"Produce a set of annotated listing files upon program completion that shows "
|
|
"how many times each statement was executed. See also :option:`--coverdir <-"
|
|
"C>`, :option:`--file <-f>` and :option:`--no-report <-R>` below."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:68
|
|
msgid "Display lines as they are executed."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:72
|
|
msgid "Display the functions executed by running the program."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:76
|
|
msgid ""
|
|
"Produce an annotated list from an earlier program run that used the :option:"
|
|
"`--count <-c>` and :option:`--file <-f>` option. This does not execute any "
|
|
"code."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:82
|
|
msgid "Display the calling relationships exposed by running the program."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:85
|
|
msgid "Modifiers"
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:91
|
|
msgid ""
|
|
"Name of a file to accumulate counts over several tracing runs. Should be "
|
|
"used with the :option:`--count <-c>` option."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:96
|
|
msgid ""
|
|
"Directory where the report files go. The coverage report for ``package."
|
|
"module`` is written to file :file:`{dir}/{package}/{module}.cover`."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:101
|
|
msgid ""
|
|
"When generating annotated listings, mark lines which were not executed with "
|
|
"``>>>>>>``."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:106
|
|
msgid ""
|
|
"When using :option:`--count <-c>` or :option:`--report <-r>`, write a brief "
|
|
"summary to stdout for each file processed."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:111
|
|
msgid ""
|
|
"Do not generate annotated listings. This is useful if you intend to make "
|
|
"several runs with :option:`--count <-c>`, and then produce a single set of "
|
|
"annotated listings at the end."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:117
|
|
msgid ""
|
|
"Prefix each line with the time since the program started. Only used while "
|
|
"tracing."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:121
|
|
msgid "Filters"
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:123
|
|
msgid "These options may be repeated multiple times."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:129
|
|
msgid ""
|
|
"Ignore each of the given module names and its submodules (if it is a "
|
|
"package). The argument can be a list of names separated by a comma."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:134
|
|
msgid ""
|
|
"Ignore all modules and packages in the named directory and subdirectories. "
|
|
"The argument can be a list of directories separated by :data:`os.pathsep`."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:140
|
|
msgid "Programmatic Interface"
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:145
|
|
msgid ""
|
|
"Create an object to trace execution of a single statement or expression. "
|
|
"All parameters are optional. *count* enables counting of line numbers. "
|
|
"*trace* enables line execution tracing. *countfuncs* enables listing of the "
|
|
"functions called during the run. *countcallers* enables call relationship "
|
|
"tracking. *ignoremods* is a list of modules or packages to ignore. "
|
|
"*ignoredirs* is a list of directories whose modules or packages should be "
|
|
"ignored. *infile* is the name of the file from which to read stored count "
|
|
"information. *outfile* is the name of the file in which to write updated "
|
|
"count information. *timing* enables a timestamp relative to when tracing "
|
|
"was started to be displayed."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:158
|
|
msgid ""
|
|
"Execute the command and gather statistics from the execution with the "
|
|
"current tracing parameters. *cmd* must be a string or code object, suitable "
|
|
"for passing into :func:`exec`."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:164
|
|
msgid ""
|
|
"Execute the command and gather statistics from the execution with the "
|
|
"current tracing parameters, in the defined global and local environments. "
|
|
"If not defined, *globals* and *locals* default to empty dictionaries."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:171
|
|
msgid ""
|
|
"Call *func* with the given arguments under control of the :class:`Trace` "
|
|
"object with the current tracing parameters."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:176
|
|
msgid ""
|
|
"Return a :class:`CoverageResults` object that contains the cumulative "
|
|
"results of all previous calls to ``run``, ``runctx`` and ``runfunc`` for the "
|
|
"given :class:`Trace` instance. Does not reset the accumulated trace results."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:183
|
|
msgid ""
|
|
"A container for coverage results, created by :meth:`Trace.results`. Should "
|
|
"not be created directly by the user."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:188
|
|
msgid "Merge in data from another :class:`CoverageResults` object."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:192
|
|
msgid ""
|
|
"Write coverage results. Set *show_missing* to show lines that had no hits. "
|
|
"Set *summary* to include in the output the coverage summary per module. "
|
|
"*coverdir* specifies the directory into which the coverage result files will "
|
|
"be output. If ``None``, the results for each source file are placed in its "
|
|
"directory."
|
|
msgstr ""
|
|
|
|
#: library/trace.rst:198
|
|
msgid "A simple example demonstrating the use of the programmatic interface::"
|
|
msgstr ""
|