wip: only include process name in api call details

This commit is contained in:
Soufiane Fariss
2024-07-30 17:03:30 +02:00
parent e70e1b0641
commit b6f0ee539b
3 changed files with 7 additions and 6 deletions

View File

@@ -55,7 +55,7 @@
<!-- Address column body template -->
<template v-if="col.field === 'address'" #body="slotProps">
<span style="font-family: monospace">
<span class="text-sm" style="font-family: monospace">
{{ slotProps.node.data.type === 'match location' ? '' : slotProps.node.data.address }}
</span>
</template>
@@ -120,6 +120,8 @@
</template>
<script setup>
import 'highlight.js/styles/stackoverflow-light.css'
import { ref, onMounted, computed } from 'vue'
import TreeTable from 'primevue/treetable'
import InputText from 'primevue/inputtext'

View File

@@ -4,7 +4,7 @@
{{ node.data.name }}
</template>
<template v-else-if="node.data.type === 'match location'">
<span class="text-sm font-italic">{{ node.data.name }}</span>
<span class="text-sm font-italic">{{ node.data.name.processName || node.data.name }}</span>
</template>
<template v-else-if="node.data.type === 'statement'"
>-
@@ -26,8 +26,7 @@
- <span class="text-green-700" style="font-family: monospace">{{ node.data.name }}</span>
</template>
<template v-else-if="node.data.type === 'call-info'">
<!-- <code class="text-gray-700">{{ node.data.name }}</code> -->
<highlightjs lang="c" :code="node.data.name" />
<highlightjs lang="c" :code="node.data.name.callInfo" style="background-color: #f0f0f0" />
</template>
<span v-if="node.data.description" class="text-gray-500 text-sm" style="font-size: 90%">
= {{ node.data.description }}

View File

@@ -339,9 +339,9 @@ function getCallInfo(node, layout) {
}
s.push(`)${returnValueWithParen}`);
const callInfo = `${pname}{pid:${pid},tid:${tid},call:${callId}}\n${s.join('\n')}`;
//const callInfo = `${pname}{pid:${pid},tid:${tid},call:${callId}}\n${s.join('\n')}`;
return callInfo;
return {processName: pname, callInfo: s.join('\n')};
}
/**