salt/doc
Justin Findlay 1ef93526ea utils.jinja Add profile block and profiling of import_* jinja calls
For some of the more complex salt code--or when salt functions lack
timing stats themselves--it's desirable to be able to do thus:
```sls
{%- profile as 'inner test' %}
< jinja-code >
{%- endprofile %}
```
And get a log line like thus:
```
2019-08-05 22:10:59,531 [salt.utils.jinja ][PROFILE ][26803] Time (in seconds) to render profile block 'inner test': 5.96046447754e-06
```

This commit adds a new `profile` block tag that emits these log
statements.

The same machinery used to support the `profile` block tag is also wired
into `import_*` blocks.  For example:
```sls
{%- import grains.sls as 'blah' %}
```
results in the following log statement:
```
2019-08-05 22:10:59,542 [salt.utils.jinja ][PROFILE ][26803] Time (in seconds) to render import_yaml 'grains.sls': 0.0106961727142
```
2020-10-04 19:08:23 -07:00
..
.scripts Blacken salt 2020-04-03 13:05:41 -05:00
_ext Blacken salt 2020-04-03 13:05:41 -05:00
_incl Various Link Redirect and HTTP/HTTPS Fixes in docs (#56655) 2020-05-04 01:28:38 -07:00
_static Update device names in proxy getting started docs 2019-03-08 12:51:08 -05:00
_templates
_themes Various Link Redirect and HTTP/HTTPS Fixes in docs (#56655) 2020-05-04 01:28:38 -07:00
cheatsheet
man Drop manpage modification. 2020-09-03 13:30:25 -07:00
ref Corrected a section title (#58151) 2020-10-02 02:49:37 -07:00
security update gpg key signature 2020-06-05 08:37:04 -07:00
topics utils.jinja Add profile block and profiling of import_* jinja calls 2020-10-04 19:08:23 -07:00
apidoc-saltmods.sh Fix typos (the the > the) (#52711) 2020-04-28 10:02:41 -07:00
conf.py add newer versions of google custom search engines 2020-09-10 08:55:31 -07:00
contents.rst Add return codes docs to TOC 2018-07-31 17:23:20 -05:00
faq.rst Added example of how to use loop.until_no_eval in faq. 2019-12-13 16:50:08 +01:00
favicon.ico Fix all Sphinx warnings 2018-05-31 15:28:25 -05:00
gen_gource
glossary.rst update sphinx to 3.0.1 2020-04-17 16:49:14 -06:00
Makefile Drop docs translation support. This hasn't been put to use in years. 2019-10-28 13:19:39 +00:00
spelling_wordlist.txt Fix typo (MinonMinion) 2020-05-10 09:36:05 -07:00