Commit Graph

184 Commits

Author SHA1 Message Date
Carsten Grohmann
967d231be5 Use transcrypt --sform to enable string formatting
The Python string formatting mini language isn't enabled by default.
"{}".format(42) works fine but "{0:x}.format(42)" returns "{0:x}"
instead of "2a" if the mini language isn't enabled.
2020-11-20 21:51:33 +01:00
Carsten Grohmann
ad2bcfd551 Add drag-and-drop support for files 2020-11-20 15:20:52 +01:00
Carsten Grohmann
c55a4d018e Pressing "Reset" cleans the text area also 2020-11-20 10:28:21 +01:00
Carsten Grohmann
4d31b9ad3d Use a better describing name for VIRTUAL_ENV
Rename variable from VIRTUAL_ENV to VIRTUAL_ENV_DIR.
2020-11-19 15:11:25 +01:00
Carsten Grohmann
674ea295a8 Line "Killed process" can contain the process UID
Newer Red Hat 7 releases changes the output of the OOM a little bit. The
last output line "Killed process" contains the process UID now.

Old:
    Killed process 6576 (java) total-vm:33914892kB, \
    anon-rss:20629004kB, file-rss:0kB, shmem-rss:0kB

New:
    Killed process 6576 (java), UID 12345, total-vm:33914892kB, \
    anon-rss:20629004kB, file-rss:0kB, shmem-rss:0kB
2020-11-19 14:58:39 +01:00
Carsten Grohmann
cceb2fa21e Process names can contains - signs also
Valid process names can consist of \w ([a-zA-Z0-9_]), minus and spaces.
2020-11-19 14:50:01 +01:00
Carsten Grohmann
dcfbdf43eb Use a CSS class to format tabled results 2020-11-19 11:54:20 +01:00
Carsten Grohmann
6cc0f427af Reduce size of first column in table with results
The size is set to a smaller fixed width. This improves the layout of
the remaining columns.
2020-11-19 11:36:27 +01:00
Carsten Grohmann
cc6384903a Increase width of the PID column in process table 2020-11-19 10:19:21 +01:00
Carsten Grohmann
445b83616b Add bundler rollup.js to requirements 2020-11-19 09:45:46 +01:00
Carsten Grohmann
b2b5a1b1db Move GFP flags to class KernelConfig 2020-10-31 14:45:32 +01:00
Carsten Grohmann
2d55b800dc Unify ps table column names in class KernelConfig 2020-10-31 14:40:02 +01:00
Carsten Grohmann
26610a709e Pep8 2020-10-30 20:58:57 +01:00
Carsten Grohmann
6e11fd7aff Textual summary revised 2020-10-30 15:26:17 +01:00
Carsten Grohmann
0bc541ff11 Prefix CSS class mem-usage__svg with js-
This class is used within JS code.
2020-10-30 14:14:03 +01:00
Carsten Grohmann
a8fe90dd3d Include pending documentation changes
after the migration to Sourcehut, Transcrypt 3.7 and JS bundling with
rollup.
2020-10-29 21:32:41 +01:00
Carsten Grohmann
2ca87a740b Add build manifest
to build all changes as a small test
2020-10-29 21:23:54 +01:00
Carsten Grohmann
95455f7ad2 Move project to Sourcehut
Github will remain only a mirror.
2020-10-29 15:04:52 +01:00
Carsten Grohmann
d456f6e25e Bundling multiple JS files into one single file
Transcrypt 3.7 generates multiple JS files in __target__ directory. All
output files will be bundled into one single file with the rollup
module bundler (rollup.js). Unfortunately the information of the
original sourcemap file will be lost.
2020-10-29 14:32:42 +01:00
Carsten Grohmann
c6958c1ccf Update to Transcrypt 3.7 2020-10-29 14:14:37 +01:00
Carsten Grohmann
468991a31b Use textarea placeholder instead of own code
<textarea placeholder="..."> is more simple that writing own code.
Thereby the own code / logic has been removed.
2020-07-15 21:10:37 +02:00
Carsten Grohmann
230cddae19 Fix: Trigger process isn't part of process table 2020-07-15 20:43:44 +02:00
Carsten Grohmann
aa94d8449e Validate and adapt HTML 2020-04-08 17:37:41 +02:00
Carsten Grohmann
d670dbef45 Use class instead of type selector
for memory usage diagrams. This allows a better separation between
different SVG usages.
2020-04-07 17:26:29 +02:00
Carsten Grohmann
a8772ab94e Remove unused code 2020-04-07 14:52:59 +02:00
Carsten Grohmann
7b80e1b23a Bad indentation and tailing whitespaces 2020-04-07 14:51:34 +02:00
Carsten Grohmann
23f064f2b7 Add sorting process table 2020-04-05 14:28:37 +02:00
Carsten Grohmann
54e4f566a4 Replace plain text process table by an HTML table
and mark the trigger process and the killed process.
2020-03-26 13:46:20 +01:00
Carsten Grohmann
c62d3952da Remove duplicate class attribute 2020-03-25 19:42:46 +01:00
Carsten Grohmann
da77369418 Convert score automatically to integer
Convert killed_proc_score and trigger_proc_oomscore to integer values
2020-02-04 20:30:11 +01:00
Carsten Grohmann
81c8333017 Remove zebra-layout 2020-02-04 18:36:09 +01:00
Carsten Grohmann
1ac0bd8fe9 Don't clean elements when set back to defaults
The elements are not shown, thereby a cleanup isn't necessary. When the
elements are shown again, new values are set and overwrite the old one.
2020-02-03 21:22:44 +01:00
Carsten Grohmann
ff725e9235 Fix issue that prevents units from being copied
Units have been placed with the ::after selector. Content showing with
this pseudo-element can't be selected and copied.

Now the units are automatically added when the value is set.
2020-02-03 21:15:47 +01:00
Carsten Grohmann
527eaa4cf6 Use classes selectors to simplify handling 2020-02-03 06:18:40 +01:00
Carsten Grohmann
be2fc6954e Don't show total rss twice 2020-02-03 06:15:12 +01:00
Carsten Grohmann
2bbc235852 Minor restructuring of summary section 2020-02-01 13:09:02 +01:00
Carsten Grohmann
9470c552e6 Add percentage of memory usage to analysis summary 2020-01-31 22:10:11 +01:00
Carsten Grohmann
3f0fc63144 Typo 2020-01-31 21:46:55 +01:00
Carsten Grohmann
c57c74adb2 Align format with Nikola md processor 2020-01-09 20:49:28 +01:00
Carsten Grohmann
51da97eef5 Minor format changes in table with details 2020-01-09 20:24:33 +01:00
Carsten Grohmann
e321429a23 Place the section "Swap Usage" below the diagrams 2020-01-09 06:58:16 +01:00
Carsten Grohmann
222b6727d7 Span subsections over all table columns 2020-01-09 06:54:44 +01:00
Carsten Grohmann
d50c8a026e Add kernel source to "Further Information" 2020-01-09 06:44:25 +01:00
Carsten Grohmann
27e811979c Add suffix "_pages" to process table items 2020-01-09 06:28:34 +01:00
Carsten Grohmann
13afe5247b Rollback changed interpretation of last OOM line
This is a logical rollback because I was wrong about the
interpretation of this line.
2020-01-08 20:59:20 +01:00
Carsten Grohmann
3dc965e8ff Set a single value to several places
Prior this change items are set to html elements with id of the same
name. Now OOMDisplay._set_item() searches for elements with same-named
id or with item name listed in class attribute.

This allows to set one value to several places to once.

Additional suffixes for pages and kbytes are added in the singular or
plural automatically.
2020-01-06 22:11:51 +01:00
Carsten Grohmann
fe3aed9815 Fix calculation of requested memory in kBytes 2020-01-05 01:12:58 +01:00
Carsten Grohmann
cd00996583 Rename item according to the naming convention 2020-01-05 01:10:35 +01:00
Carsten Grohmann
374cc2e910 Fix interpretation of the last OOM line
The memory statistics in the last OOM line (total-vm, anon-rss,
file-rss, shmem-rss) are overall and not related to the killed process.
2020-01-05 01:00:02 +01:00
Carsten Grohmann
85308f6d03 Typos 2020-01-05 00:52:13 +01:00