Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
salt /
output /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-10-11 05:09
__init__.py
7.03
KB
-rw-r--r--
2022-05-16 09:16
dson.py
1.55
KB
-rw-r--r--
2022-05-16 09:16
highstate.py
21.64
KB
-rw-r--r--
2022-05-16 09:16
json_out.py
2.64
KB
-rw-r--r--
2022-05-16 09:16
key.py
3.01
KB
-rw-r--r--
2022-05-16 09:16
nested.py
5.27
KB
-rw-r--r--
2022-05-16 09:16
newline_values_only.py
2.11
KB
-rw-r--r--
2022-05-16 09:16
no_out_quiet.py
450
B
-rw-r--r--
2022-05-16 09:16
no_return.py
1.47
KB
-rw-r--r--
2022-05-16 09:16
overstatestage.py
1.01
KB
-rw-r--r--
2022-05-16 09:16
pony.py
2.58
KB
-rw-r--r--
2022-05-16 09:16
pprint_out.py
1010
B
-rw-r--r--
2022-05-16 09:16
profile.py
2.18
KB
-rw-r--r--
2022-05-16 09:16
progress.py
1.19
KB
-rw-r--r--
2022-05-16 09:16
raw.py
891
B
-rw-r--r--
2022-05-16 09:16
table_out.py
12.47
KB
-rw-r--r--
2022-05-16 09:16
txt.py
998
B
-rw-r--r--
2022-05-16 09:16
virt_query.py
1.84
KB
-rw-r--r--
2022-05-16 09:16
yaml_out.py
1.37
KB
-rw-r--r--
2022-05-16 09:16
Save
Rename
""" Display profiling data in a table format ======================================== Show profile data for returners that would normally show a highstate output. CLI Example: .. code-block:: bash salt '*' state.apply something --out=profile Attempt to output the returns of state.sls and state.highstate as a table of names, modules and durations that looks somewhat like the following:: name mod.fun duration (ms) -------------------------------------------------------- I-fail-unless-stmt other.function -1.0000 old-minion-config grains.list_present 1.1200 salt-data group.present 48.3800 /etc/salt/minion file.managed 63.1450 To get the above appearance, use settings something like these:: out.table.separate_rows: False out.table.justify: left out.table.delim: ' ' out.table.prefix: '' out.table.suffix: '' """ import salt.output.table_out as table_out __virtualname__ = "profile" def __virtual__(): return True def _find_durations(data, name_max=60): ret = [] ml = len("duration (ms)") for host in data: for sid in data[host]: dat = data[host][sid] ts = sid.split("_|-") mod = ts[0] fun = ts[-1] name = dat.get("name", dat.get("__id__")) dur = float(data[host][sid].get("duration", -1)) if name is None: name = "<>" if len(name) > name_max: name = name[0 : name_max - 3] + "..." l = len("{:0.4f}".format(dur)) if l > ml: ml = l ret.append([dur, name, "{}.{}".format(mod, fun)]) for row in ret: row[0] = "{0:{w}.4f}".format(row[0], w=ml) return [x[1:] + x[0:1] for x in sorted(ret)] def output(data, **kwargs): """ Display the profiling data in a table format. """ rows = _find_durations(data) kwargs["opts"] = __opts__ kwargs["rows_key"] = "rows" kwargs["labels_key"] = "labels" to_show = {"labels": ["name", "mod.fun", "duration (ms)"], "rows": rows} return table_out.output(to_show, **kwargs)