当前位置:首页>鸿蒙APP>支配树算法原理及鸿蒙工具实践

支配树算法原理及鸿蒙工具实践

  • 2026-02-01 15:52:36
支配树算法原理及鸿蒙工具实践
本文介绍了支配树(Dominator Tree)算法在鸿蒙系统 ArkTS 内存分析工具中的应用。为应对淘宝 App 鸿蒙版因内存溢出导致的 Crash 问题,作者构建了一套从客户端采集内存快照、服务端自动分析的工具链。文中对比了多种支配树构建算法(如朴素算法、Lengauer-Tarjan 算法和迭代算法),并说明选用优化后的迭代算法的原因:实现简单、便于验证、且适合存在大量循环引用的内存图结构。
前言
随着App鸿UV增⻓ArkTS的内存出导Crash在逐实现了套从客端采集内存镜像务端动分合⼯具⽂介绍该⼯具的⼼原理

什么

使得,则 。点。
()类:
classB{  int c;}classA{  B b = new B();}A a = new A();
  1.  ,ab为4bytes。b对象中有⼀个变量c,为4bytes
  2. ,指的是回收该对象之后虚拟机能够回收的内存⼤⼩。a对象的8ab
将对象抽象中的节点间的引⽤关系则可以抽象中的例如⾯的代a引⽤b可以抽象
GCroot建出收 aGC出:
  1. ,复使⽤。
  2. Lengauer-Tarjan算法,经典的⽀配树算法,⼀般情况是优化后的算法复杂度, α 是阿克曼函数,可以理解为趋近于线性
  3. 迭代算法,通常是用于在编译器的控制流当中,算法复杂度是,优化后算法复杂度
鸿ArkTS使因:
  1. Lengauer-Tarjan原理及其优化⼯具类对于建⽀配树度要没有那么⾼;
  2. 使profilerchrome错;
  3. 让Lengauer-Tarjan加。
Lengauer-Tarjan
Lengauer-Tarjan译⽐AI误。
AI所有节DFS都⼤x。
图通过DFS之后形的节点和的关系节点0-10dfs历的顺序,下称为dfs的类可以分为4种:
  1. DFS⾊;
  2. ,  2->61->40->2;
  3. 4->2,3->2,6->2;
  4. 绿8->5,9->8。
Lengauer-Tarjan的定义:

对于任意节点,如果存在一个节点,且 的路径中所有节点节点可以不存在)的序号都大于,则的半支配候选,其中dfs序最小的被称为的半支配节点。

基础知识中介绍4的类对于任节点的半⽀节点可以理解为是通过这四最远祖先节点(当前节点dfs序⼩的节点只祖先节点左⼦节点dfs必须历完左⼦历右⼦左⼦节点到右⼦节点的只可祖先节点)由半⽀节点的定义可得:
  1. 3->5
  2. :2->6
  3. 1->4->2
  4. 1->7->8->5
更进条边

隐含的结论: 半⽀配候选都是在 的树边上

接⽀
dfs5(3->5)(1->7->8->5)0->2->3->51
 的dfs
进⾏
  1.  ,
  2.  明 选集树边
Lengauer-Tarjan算考 Android perflib(cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:perflib/src/main/java/com/android/tools/perflib/heap/analysis/LinkEvalDominators.kt
迭代
算法原理
节点:

1. 初始化根节点 s , Dom(s) = {s}

2. 初始化其他节点 n , Dom(n) = {全集}

3. 对于⾮根节点 n , Dom(n) = n ∪ (∩Dom(p)) ,即当前节点 n 并上所有前驱节点 p的⽀配节点的交集

4. 重复步骤3,直到所有的 Dom(n) 不再变化

JS内存镜像分析
jsjson
{"snapshot":{"meta":{"node_fields":["type","name","id","self_size","edge_count","trace_node_id","detachedness","native_size"],"node_types":[["hidden","array","string","object","code","closure","regexp","number","native","synthetic","concatenatedstring","slicedstring","symbol","bigint"],"string","number","number","number","number","number"],"edge_fields":["type","name_or_index","to_node"],"edge_types":[["context","element","property","internal","hidden","shortcut","weak"],"string_or_number","node"],"trace_function_info_fields":[...],"trace_node_fields":[...],"sample_fields":[...],"location_fields":[...]},"node_count":100056,"edge_count":384773,"trace_function_count":0},"nodes":[...],"edges":[...],"trace_function_infos":[],"trace_tree":[],"samples":[],"locations":[],"strings":[...],}
  • meta:
  • node_fields:(node)
  • node_types:(node)
  • edge_fields:(edge)
  • edge_types:
  • node_count:
  • edge_count:
  • nodes:
  • edges:
  • strings:
  • 内存节node
nodesnode_fields
"node_fields":["type","name","id","self_size","edge_count","trace_node_id","detachedness","native_size"],"nodes":[9,11693,1,0,6386,0,0,0,8,11696,3,48,1,0,0,0,8,11696,5,48,1,0,0,0,...]
以第⾏ 9,11693,1,0,6386,0,0,0 为
type9, //节点类型的偏移name11693, //节点名字,大概率是文件名,对应strings中的indexid1, //无特殊含义,节点的标号self_size0, //大概率是shallow_size,0大概率是数组edge_count6386, //跟其他内存节点的引用关系
nodes_type存14synthetic似乎
"node_types":[["hidden","array","string","object","code","closure","regexp","number","native","synthetic","concatenatedstring","slicedstring","symbol","bigint"],"string","number","number","number","number","number"],
strings存name是SyntheticRoot
  • edge
edges通过edge_fields
"edge_fields":["type","name_or_index","to_node"],"edges":[5,11673,527080,5,11673,527072,5,11673,527056,...]
type存储的的类节点之间引⽤关系的类例如⾏的例⼦代表这条边的类型是⼀个shotcut
"edge_types":[["context","element","property","internal","hidden","shortcut","weak"],"string_or_number","node"],context //暂时没有用处element //DOMTree中的元素property //类当中的属性internal //内部属性hidden //隐藏属性shortcut //和property中差不多,通过赋值得到的引用weak //弱引用

name or__index存储的是strings中的名字index,11673对应的是-subroot-字符串to_node代表的是这条边指向的节点索引,因为内存引用构成是一个有向图,所以还需要知道这条边来自于哪个节点。边属于哪个节点的计算是通过内存节点索引+边来进行计算的,举个例子:如果一个节点的序号是0,有10条边,那么edges[0,10)就是属于节点0的,如果序号1的节点有5条边,那么edges[10,15)就是属于节点1的。

构建边的索引
内存节点的属性edge_count代表该节点持有的数量可以算出节点持有边索引范[firstEdgeIndexes[nodeOrdinal], firstEdgeIndexes[nodeOrdinal+1])
privatevoidbuildEdgeIndexes() {     firstEdgeIndexes[nodeCount] = edges.length;     int nodeOrdinal = 0    for (int edgeIndex = 0; nodeOrdinal < nodeCount; ++nodeOrdinal) {         firstEdgeIndexes[nodeOrdinal] = edgeIndex;         //nodes[nodeOrdinal * nodeFieldCount + nodeEdgeCountOffset]当前节点持有边的个数         edgeIndex += nodes[nodeOrdinal * nodeFieldCount + nodeEdgeCountOffset] * edgeFieldsCount;     } }
构建前驱节点
1. 遍所有toNode然后计算toNode的前驱节点(retainer)的数量存储在 firstRetainerIndex 中和firstEdgeIndexes节点的前驱节点的范也计算出来了
[firstRetainerIndex[nodeOrdinal],firstRetainerIndex[nodeOrdinal+1])
int edgeLength = edges.length; for (int edgeToNodeIndex = edgeToNodeOffset; edgeToNodeIndex < edgeLength; edgeToNodeIndex += edgeFieldsCount) {     int toNodeIndex = edges[edgeToNodeIndex];     if (toNodeIndex % nodeFieldCount != 0) {         TBPLogger.error("Invalid toNodeIndex is {}"new Object[] {toNodeIndex});     } else {         int toNodeOrdinal = toNodeIndex / nodeFieldCount;         if (isValid(toNodeOrdinal, firstRetainerIndex.length)) {             firstRetainerIndex[toNodeOrdinal]++;         }     } }
2. 遍历retainingNodes
int firstUnusedRetainerSlot = 0for (int nodeOrdinal = 0; nodeOrdinal < nodeCount; ++nodeOrdinal) {     int retainerCount = firstRetainerIndex[nodeOrdinal];     firstRetainerIndex[nodeOrdinal] = firstUnusedRetainerSlot;     if (isValid(firstUnusedRetainerSlot, edgeCount)) {         retainingNodes[firstUnusedRetainerSlot] = retainerCount;         firstUnusedRetainerSlot += retainerCount;      }}
3. 遍toNodetoNode
for (srcNodeOrdinal = 0; srcNodeOrdinal < nodeCount; ++srcNodeOrdinal) {     firstEdgeIndex = nextNodeFirstEdgeIndex;     nextNodeFirstEdgeIndex = firstEdgeIndexes[srcNodeOrdinal + 1];     srcNodeIndex = srcNodeOrdinal * nodeFieldCount;     for (int edgeIndex = firstEdgeIndex; edgeIndex < nextNodeFirstEdgeIndex; edgeIndex += edgeFieldsCount) {         int index = edgeIndex + edgeToNodeOffset;         if (isValid(index, edges.length)) {             int toNodeIndex = edges[index];             if (toNodeIndex % nodeFieldCount != 0) {                 TBPLogger.error("Invalid toNodeIndex is {}.", new Object[]{toNodeIndex});             } else if (isValid(toNodeIndex / nodeFieldCount, firstRetainerIndex.length)) {                 //retainningNodes的起点                 int firstRetainerSlotIndex = firstRetainerIndex[toNodeIndex / nodeFieldCount];                 //由后向前添加,直到retainingNodes[firstRetainerSlotIndex]变为了0                 int nextUnusedRetainerSlotIndex = firstRetainerSlotIndex + (--retainingNodes[firstRetainerSlotIndex]);                 if (isValid(nextUnusedRetainerSlotIndex, retainingNodes.length) && isValid(nextUnusedRetainerSlotIndex, retainingEdges.length)) {                     retainingNodes[nextUnusedRetainerSlotIndex] = srcNodeIndex;                     retainingEdges[nextUnusedRetainerSlotIndex] = edgeIndex;                 }             }         }     }
计算节点distance
使bfs
privatevoidcalculateDistances() {    for (int nodeOrdinal = 0; nodeOrdinal < nodeCount; nodeOrdinal++) {        nodeDistances[nodeOrdinal] = noDistance;    }    int[] nodesToVisit = new int[nodeCount];    int nodesToVisitLength = 0;    //遍历根节点    for (int edgeIndex = firstEdgeIndexes[rootNodeIndexInternal];         edgeIndex < firstEdgeIndexes[rootNodeIndexInternal + 1];edgeIndex += edgeFieldsCount) {        int childNodeIndex = edges[edgeIndex + edgeToNodeOffset];        int childNodeOrdinal = childNodeIndex / nodeFieldCount;        if (isUserRoot(childNodeIndex)) {            nodeDistances[childNodeOrdinal] = 1;            bfsNodes[bfsIndex++] = childNodeOrdinal;            nodesToVisit[nodesToVisitLength++] = childNodeIndex;        }    }    //从根节点进行遍历    bfs(nodesToVisit, nodesToVisitLength, nodeDistances);    nodeDistances[rootNodeIndexInternal / nodeFieldCount] =nodesToVisitLength > 0 ? -1 : 0;;    nodesToVisit[0] = rootNodeIndexInternal;    nodesToVisitLength = 1;    //遍历其他单独的节点,synthetic节点    bfs(nodesToVisit, nodesToVisitLength, nodeDistances);}
构建⽀配树
chrome鸿IDEprofiler使论⽂Simple, Fast Dominance Algorithm点:
  1. 计算节点Dom顺序⽤先序采⽤后序历加收敛础知以得知dfs树有四种边其中前树边先序遍历和序遍都是次遍于返祖边都是次遍才能于横要⼀次。
  2. 计算Dom(p)的交集的素算法是所有前驱节点的⽀节点⼀⼀查找配,这样效率很低很低可以到O(n2)论⽂出了⼀个于前的domdom(7) = {7,1,0},dom(6) = {6,2,1,0}, dom(3) ={3,2,1,0}dom(5)dom(5)={5,1,0}idom(n)n点。
便chromeHeapSnapshot.ts(github.com/ChromeDevTools/devtools-frontend/blob/chromium/6194/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts
计算⽀节点的⼼就intersect当前节点的dom和前驱节点之间的最近公共祖先优化后的代算可以降低到m是遍logn配树m⼀个常量的话,⼀般算度可以做到
计算retainSize
retainSize果通过GC释放内存节点释放的内存⼤⼩计算⽀配树的⽬的就确定节点的retainSize = 当前节点的shallowSize(⼤⼩) + 节点的retainSize。
voidcalculateRetainedSizes(int[] postOrderIndex2NodeOrdinal) {    int postOrderIndex;    for (postOrderIndex = 0; postOrderIndex < nodeCount;++postOrderIndex) {        retainedSizes[postOrderIndex] = nodes[postOrderIndex *nodeFieldCount + nodeSelfSizeOffset];        if (nodeNativeSizeOffset != 0) {            retainedNativeSizes[postOrderIndex] = (long)nodes[postOrderIndex * nodeFieldCount + nodeNativeSizeOffset];        }   }   //后序遍历,让被支配节点先于支配节点计算retainSize   for (postOrderIndex = 0; postOrderIndex < nodeCount - 1;++postOrderIndex) {        int nodeOrdinal = postOrderIndex2NodeOrdinal[postOrderIndex];        int dominatorOrdinal = 0;        if (isValid(nodeOrdinal, dominatorsTree.length)) {            dominatorOrdinal = dominatorsTree[nodeOrdinal];        }        if (isValid(dominatorOrdinal, retainedSizes.length) &&isValid(nodeOrdinal, retainedSizes.length)) {            retainedSizes[dominatorOrdinal] +=retainedSizes[nodeOrdinal];            if (nodeNativeSizeOffset != 0) {                retainedNativeSizes[dominatorOrdinal] +=retainedNativeSizes[nodeOrdinal];            }        }    }}
聚合计算
难的分⽀配树已经计算完需要将引⽤链起来⽅便⼈⼯分平台动化分析。
1. 先stringIndexstringIndexretainSize型。
public Map<Integer, ConstructorNode> getBigHeapNode() {    Map<Integer, ConstructorNode> heapNodes = new HashMap<>(nodeCount);    for (int nodeOrdinal = 0; nodeOrdinal < nodeCount; nodeOrdinal++) {        int nodeIndex = nodeOrdinal * nodeFieldCount;        if (isHidden(nodeIndex)) {            continue;        }        if (isSynthetic(nodeIndex)) {            continue;        }        int stringIndex = nodes[nodeIndex + nodeNameOffset];        if (heapNodes.containsKey(stringIndex)) {            ConstructorNode heapNode = heapNodes.get(stringIndex);            heapNode.addRetainedSize(1, retainedSizes[nodeOrdinal]);        } else {            String constructorName = strings.get(stringIndex);            if (HarmonyAnalyzeUtils.containsTaobao(constructorName)) {                ConstructorNode heapNode = new ConstructorNode(stringIndex, constructorName, 1,retainedSizes[nodeOrdinal]);                heapNodes.put(stringIndex, heapNode);            }        }    }    ConfigParams configParams = CmdArgs.getInstance().getConfigParams();    Map<Integer, ConstructorNode> bigNodes = new HashMap<>();    for (ConstructorNode heapNode : heapNodes.values()) {        if (heapNode.getRetainedSize() >= configParams.minRetainedSize || heapNode.getCount() >= configParams.minLeakCount) {            bigNodes.put(heapNode.getStringIndex(), heapNode);        }    }    return bigNodes;}
2. 重新通过bfs的顺序历节点果是⼤对回溯到到节点的径并记据引⽤aggregatedRefTree。
privatevoidaggregateReferenceTree() {    Map<Integer, ConstructorNode> bigNodes = getTBHeapNode();    //对节点进行bfs    for (int i = 0; i < bfsIndex; i++) {        int nodeOrdinal = bfsNodes[i];        int nodeIndex = nodeOrdinal * nodeFieldCount;        int stringIndex = nodes[nodeIndex + nodeNameOffset];        if (bigNodes.containsKey(stringIndex)) {            Map<String, List<ConstructorNode>> referenceTrees = new HashMap<>();            calculateReferenceTree(nodeOrdinal, new StringBuilder(), new ArrayList<>(), referenceTrees);            for (String key : referenceTrees.keySet()) {                List<ConstructorNode> refChain = referenceTrees.get(key);                if (aggregatedRefTree.containsKey(key)) {                    ConstructorNode cached = aggregatedRefTree.get(key).get(0);                    //相同节点的链路不用相加                    if (cached == refChain.get(0)) {                        continue;                    }                    cached.addCount();                    cached.addRetainedSize(retainedSizes[nodeOrdinal]);                    cached.addShallowSize(nodes[nodeIndex + nodeSelfSizeOffset]);                } else {                    if (!refChain.isEmpty()) {                        aggregatedRefTree.put(key, refChain);                    }                }            }        }    }}privatevoidcalculateReferenceTree(int nodeOrdinal, StringBuilder pathKey, List<ConstructorNode> refChain,                                        Map<String, List<ConstructorNode>> referenceTree) {    int nodeIndex = nodeOrdinal * nodeFieldCount;    int stringIndex = nodes[nodeIndex + nodeNameOffset];    pathKey.append(stringIndex).append('-');    ConstructorNode node = new ConstructorNode(stringIndex, strings.get(stringIndex), nodeDistances[nodeOrdinal]);    refChain.add(node);    if (nodeDistances[nodeOrdinal] == 1) {        String key = pathKey.toString();        List<ConstructorNode> newRefChain = new ArrayList<>(refChain);        referenceTree.put(key, newRefChain);        return;    }    List<Integer> retainers = findRetainers(nodeOrdinal);    for (Integer retainer : retainers) {        StringBuilder newPathKey = new StringBuilder(pathKey);        List<ConstructorNode> newRefChain = new ArrayList<>(refChain);        calculateReferenceTree(retainer, newPathKey, newRefChain, referenceTree);    }}
配树属于内存/出分⼼算们基于实现鸿ArkTS内存镜像⼯具望本⽂对⼤家实现类似功的⼯具定帮助
参考
  • ASimpleFastDominanceAlgorithm》:

    https://www.cs.tufts.edu/~nr/cs257/archive/keith-cooper/dom14.pdf

  • ANewSimplerLinear-TimeDominatorsAlgorithm》:

    http://adambuchsbaum.com/papers/dom-toplas.pdf

  • AFastAlgorithmforFindingDominatorsinaFlowgraph》:

    https://faculty.cc.gatech.edu/~harrold/6340/cs6340_fall2009/Readings/lengauer91jul.pdf

团队介绍

本文作者灵貎,来自淘天集团-终端平台基础工程团队,团队负责淘宝App基础架构和基础链路业务,致力于通过技术创新和系统优化,打造一个更稳定、更流畅的手机淘宝。同时我们也在持续探索通过AI搭建高效、智能的研发体系,提升团队的研发效能。

¤ 拓展阅读 ¤
3DXR技术 | 终端技术 | 音视频技术

服务端技术 | 技术质量 | 数据算法

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-02-05 05:47:42 HTTP/2.0 GET : https://c.mffb.com.cn/a/461377.html
  2. 运行时间 : 0.186874s [ 吞吐率:5.35req/s ] 内存消耗:4,621.73kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=3682bc3405ad00a858299e7170452746
  1. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/runtime/temp/cefbf809ba1a84190cb04b0cb7abcf79.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/c.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000967s ] mysql:host=127.0.0.1;port=3306;dbname=c_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001421s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000693s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000670s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001323s ]
  6. SELECT * FROM `set` [ RunTime:0.000593s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001580s ]
  8. SELECT * FROM `article` WHERE `id` = 461377 LIMIT 1 [ RunTime:0.001324s ]
  9. UPDATE `article` SET `lasttime` = 1770241662 WHERE `id` = 461377 [ RunTime:0.017136s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000614s ]
  11. SELECT * FROM `article` WHERE `id` < 461377 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001164s ]
  12. SELECT * FROM `article` WHERE `id` > 461377 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.001100s ]
  13. SELECT * FROM `article` WHERE `id` < 461377 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.009370s ]
  14. SELECT * FROM `article` WHERE `id` < 461377 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.001069s ]
  15. SELECT * FROM `article` WHERE `id` < 461377 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.001197s ]
0.188377s