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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
|
<style include="healthd-internals-shared cr-shared-style md-select">
#pageHeader {
display: flex;
height: 60px;
justify-content: space-between;
align-items: center;
}
#headerEndContainer {
display: flex;
padding-inline-end: 32px;
align-items: center;
}
#settingsContainer {
display: flex;
height: 60px;
width: 90%;
overflow-x: auto;
gap: 48px;
margin: 0 32px;
align-items: center;
}
.setting-with-label-container {
display: flex;
align-items: center;
gap: 8px;
}
cr-input {
width: 150px;
--cr-input-error-display: none;
}
#pageSizeSelector {
width: 70px;
}
#sortColumnSelector {
width: 150px;
}
#sortOrderSelector {
width: 100px;
}
#tableContainer {
height: calc(95vh - 60px - 60px);
width: 100%;
overflow: auto;
}
table {
overflow: auto;
border-collapse: collapse;
margin: 0 auto 16px auto;
}
thead th {
position: sticky;
top: 0;
z-index: 1;
background-color: var(--cr-menu-background-color);
}
td {
border-top: 1px solid var(--scrollable-border-color);
}
th, td {
color: var(--cr-primary-text-color);
padding: 8px 16px;
text-align: center;
max-width: 100px;
word-wrap: break-word;
}
.command-column {
text-align: left;
max-width: 600px;
}
</style>
<div id="pageHeader">
<h1>Processes</h1>
<div id="headerEndContainer">
<label>Last update: [[lastUpdateTime]]</label>
</div>
</div>
<div id="settingsContainer">
<div class="setting-with-label-container">
<label>Filter</label>
<cr-input type="text" value="{{filterQuery}}" placeholder="Enter query...">
</cr-input>
</div>
<div class="setting-with-label-container">
<label>Page Size</label>
<select id="pageSizeSelector" class="md-select"
on-change="onPageSizeChanged" value="[[pageSize]]">
<option value=100>100</option>
<option value=500>500</option>
<option value=2000>2000</option>
</select>
</div>
<div class="setting-with-label-container">
<label>Sort column</label>
<select id="sortColumnSelector" class="md-select"
on-change="onSortColumnChanged" value="[[sortColumn]]">
<template is="dom-repeat" items="[[displayedHeaders]]">
<option value="[[item.sortColumnId]]">[[item.title]]</option>
</template>
</select>
</div>
<div class="setting-with-label-container">
<label>Sort order</label>
<select id="sortOrderSelector" class="md-select"
on-change="onSortOrderChanged" value="[[sortOrder]]">
<option value="ascend">Ascend</option>
<option value="descend">Dscend</option>
</select>
</div>
</div>
<div id="tableContainer"><table>
<thead>
<tr>
<template is="dom-repeat" items="[[displayedHeaders]]">
<th>[[item.title]]</th>
</template>
</tr>
</thead>
<tbody>
<template is="dom-repeat" items="[[displayedData]]">
<tr>
<td>[[item.processId]]</td>
<td>[[item.name]]</td>
<td>[[item.priority]]</td>
<td>[[item.nice]]</td>
<td>[[item.state]]</td>
<td>[[item.threadsNumber]]</td>
<td>[[item.userId]]</td>
<td>[[item.parentProcessId]]</td>
<td>[[item.processGroupId]]</td>
<td>[[item.residentMemoryKib]]</td>
<td>[[item.uptimeTicks]]</td>
<td>[[item.readSystemCallsCount]]</td>
<td>[[item.writeSystemCallsCount]]</td>
<td class="command-column">[[item.command]]</td>
</tr>
</template>
</tbody>
</table></div>
|