Skip to content

Commit abcfb1d

Browse files
committed
opt
1 parent b7c6dce commit abcfb1d

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/renderer/src/views/ostrace/dataHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ class OfflineDataProvider {
342342

343343
// For TASK: only create state when status is START and next event exists
344344
if (cur.type === TaskType.TASK) {
345-
if (cur.status == TaskStatus.TERMINATE || cur.status == TaskStatus.WAIT) {
345+
if (cur.status == TaskStatus.TERMINATE) {
346346
continue
347347
}
348348
}

src/renderer/src/views/ostrace/graph.vue

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@
107107
>
108108
<div class="button-content">
109109
<div
110-
v-show="isPaused"
110+
v-show="isPaused || !globalStart"
111111
class="arrow-left"
112112
@click.stop="handleArrowClick('left', core.id, buttonIndex, button.name)"
113113
>
114114
<Icon :icon="'material-symbols:chevron-left'" />
115115
</div>
116116
<span class="button-text">{{ button.name }}</span>
117117
<div
118-
v-show="isPaused"
118+
v-show="isPaused || !globalStart"
119119
class="arrow-right"
120120
@click.stop="handleArrowClick('right', core.id, buttonIndex, button.name)"
121121
>
@@ -955,10 +955,9 @@ function initPixiGraph() {
955955
if (button) {
956956
style.color = stringColor2number(button.color)
957957
if (data.cur.type === TaskType.TASK) {
958-
if (data.cur.status === TaskStatus.ACTIVE || data.cur.status === TaskStatus.RELEASE) {
958+
if (data.cur.status != TaskStatus.START) {
959959
style.height = buttonHeight * 0.2
960-
} else if (data.cur.status === TaskStatus.PREEMPT) {
961-
style.opacity = 0.3
960+
style.opacity = 0.8
962961
}
963962
}
964963
}
@@ -1715,7 +1714,7 @@ onUnmounted(() => {
17151714
flex-direction: column;
17161715
justify-content: center;
17171716
gap: 2px;
1718-
font-size: 10px;
1717+
font-size: 11px;
17191718
color: var(--el-text-color-regular);
17201719
background: var(--el-bg-color-overlay);
17211720
padding: 2px 4px;
@@ -1736,7 +1735,7 @@ onUnmounted(() => {
17361735
border: 1px solid var(--el-border-color);
17371736
border-radius: 2px;
17381737
padding: 1px 4px;
1739-
font-size: 10px;
1738+
font-size: 12px;
17401739
font-family: monospace;
17411740
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
17421741
line-height: 1;
@@ -1778,7 +1777,7 @@ onUnmounted(() => {
17781777
border: 1px solid var(--el-border-color);
17791778
border-radius: 2px;
17801779
padding: 1px 4px;
1781-
font-size: 11px;
1780+
font-size: 12px;
17821781
font-family: monospace;
17831782
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
17841783
line-height: 1;

0 commit comments

Comments
 (0)