|
|
@@ -2,17 +2,18 @@
|
|
|
<div class="jvvm">
|
|
|
<j-heap class="heap" :objects="state.memory?state.memory.objects:[]"
|
|
|
@click-detail="handleCheckDetail($event, 'j-heap-detail')"></j-heap>
|
|
|
- <j-method class="method" :objects="state.memory?state.memory.classes:[]"
|
|
|
+ <j-method class="method" :methods="state.memory?state.memory.classes:[]"
|
|
|
@click-detail="handleCheckDetail($event, 'j-method-detail')"></j-method>
|
|
|
- <j-thread class="thread" :objects="state.thread?state.thread.threadStack:[]"
|
|
|
+ <j-thread class="thread" :thread-stack="state.thread?state.thread.threadStack:[]"
|
|
|
@click-detail="handleCheckDetail($event, 'j-thread-detail')"></j-thread>
|
|
|
<component class="detail" :is="detailComponent" :data="detail"></component>
|
|
|
<div class="other-info">
|
|
|
info
|
|
|
+ <source-code :source-code="currentCodeData" />
|
|
|
</div>
|
|
|
<div class="actions">
|
|
|
<v-btn class="mx-2" dark small color="#5a6a7a" @click="()=>{}">
|
|
|
- 查看源码
|
|
|
+ {{showSource?'查看字节码':'查看源码'}}
|
|
|
</v-btn>
|
|
|
<v-btn class="mx-2" fab dark small color="#5a6a7a" @click="goPreFrame">
|
|
|
<v-icon dark>mdi-arrow-left</v-icon>
|
|
|
@@ -32,10 +33,12 @@ import JThread from '@/components/JThread'
|
|
|
import JMethodDetail from '@/components/JMethodDetail'
|
|
|
import JThreadDetail from '@/components/JThreadDetail'
|
|
|
import JHeapDetail from '@/components/JHeapDetail'
|
|
|
+import SourceCode from '@/components/SourceCode'
|
|
|
|
|
|
export default {
|
|
|
name: 'JVVM',
|
|
|
components: {
|
|
|
+ SourceCode,
|
|
|
JThread,
|
|
|
JThreadDetail,
|
|
|
JMethod,
|