当前位置:首页>安卓APP>安卓fw面试被刷了?剖析wms的 defer / continueWindowLayout

安卓fw面试被刷了?剖析wms的 defer / continueWindowLayout

  • 2026-08-19 15:35:58
安卓fw面试被刷了?剖析wms的 defer / continueWindowLayout

背景

近期有学员在fw面试wms相关业务时候,有问到关于deferWindowLayout和continueWindowLayout相关的作用,学员对这块理解相对比较浅导致面试没有通过,今天我们来深入剖析一下关于这块内容(基于aosp13版本)。

在 Android 系统源码中,deferWindowLayout 和 continueWindowLayout 是成对出现的窗口布局控制方法,定义在 ActivityTaskManagerService 中,底层委托给 WindowSurfacePlacer 的 deferLayout 和 continueLayout。这套机制用于在连续修改多个窗口状态时,把布局计算延后到修改全部完成之后,统一执行一次。

一、为什么需要这两个方法

一般面试能回答到这个就是不错的,能回答到说明理解还是到位,当然背书也不行哈,还是要结合代码真正理解,才可以不变应万变。

窗口状态的任何变化(添加、移除、大小变化、可见性变化)最终都要触发一次全局布局计算,即 performSurfacePlacement。这个操作会遍历整个窗口树,重新计算所有窗口的 frame 和可见性,再同步给 SurfaceFlinger,开销比较大。

deferWindowLayout / continueWindowLayout 解决的问题有两个:

  1. 性能:连续修改多个窗口状态时,如果每次修改都立即触发布局,会重复执行多次 performSurfacePlacement。通过 defer 把布局延后,等所有修改完成后统一执行一次。
  2. 一致性:一组相关的状态修改作为一个整体提交,中间状态不会单独触发一次布局被渲染出来。

二、实现原理

1. WindowSurfacePlacer 中的计数器

核心实现位于 WindowSurfacePlacer。它用两个字段记录挂起状态:

// WindowSurfacePlacer.javaprivateint mDeferDepth = 0;/** The number of layout requests when deferring. */privateint mDeferredRequests;
  • mDeferDepth:挂起深度计数器。deferLayout 每次加 1,continueLayout 每次减 1,减到 0 才恢复布局。用计数器而不是布尔值,是因为调用可能嵌套。
  • mDeferredRequests:挂起期间被请求布局的次数。挂起期间如果有代码调用了 performSurfacePlacement,不会真正执行,而是把这次请求记到这个字段里。

deferLayout 和 continueLayout 的实现:

// WindowSurfacePlacer.java:73voiddeferLayout(){    mDeferDepth++;}// WindowSurfacePlacer.java:86voidcontinueLayout(boolean hasChanges){    mDeferDepth--;if (mDeferDepth > 0) {return;    }if (hasChanges || mDeferredRequests > 0) {        performSurfacePlacement();        mDeferredRequests = 0;    }}// WindowSurfacePlacer.java:104booleanisLayoutDeferred(){return mDeferDepth > 0;}

continueLayout 只有在最外层(mDeferDepth 减到 0)时才真正执行布局,并且需要满足两个条件之一:

  • hasChanges 为 true:调用方明确说明挂起范围内有变化;
  • mDeferredRequests > 0:挂起期间有代码请求过布局。

两个条件都不满足时,这次 continue 直接什么都不做(即取消了这次布局)。

2. performSurfacePlacement 的拦截

performSurfacePlacement 本身也会检查挂起状态:

// WindowSurfacePlacer.java:118finalvoidperformSurfacePlacement(boolean force){if (mDeferDepth > 0 && !force) {        mDeferredRequests++;return;    }// ... 真正的遍历计算 ...}

挂起期间(mDeferDepth > 0)且不是强制布局时,不执行布局,只把 mDeferredRequests 加 1。force 为 true 的调用可以绕过挂起状态直接执行。

3. ActivityTaskManagerService 中的封装

deferWindowLayout / continueWindowLayout 是对上面两个方法的封装,额外引入了一个 mLayoutReasons 位掩码,用来记录挂起范围内具体发生了什么变化:

// ActivityTaskManagerService.java:691staticfinalint LAYOUT_REASON_CONFIG_CHANGED = 0x1;staticfinalint LAYOUT_REASON_VISIBILITY_CHANGED = 0x2;/** The reasons to perform surface placement. */@LayoutReasonprivateint mLayoutReasons;
// ActivityTaskManagerService.java:4398voiddeferWindowLayout(){if (!mWindowManager.mWindowPlacerLocked.isLayoutDeferred()) {// 只有第一次进入(最外层)才重置,因为只需要关心 defer 范围内的变化        mLayoutReasons = 0;    }    mWindowManager.mWindowPlacerLocked.deferLayout();}// ActivityTaskManagerService.java:4409voidcontinueWindowLayout(){    mWindowManager.mWindowPlacerLocked.continueLayout(mLayoutReasons != 0);}// ActivityTaskManagerService.java:4421voidaddWindowLayoutReasons(@LayoutReason int reasons){    mLayoutReasons |= reasons;}

mLayoutReasons 的作用是让 continue 时能判断挂起范围内是否真的有变化。deferWindowLayout 在最外层入口把 mLayoutReasons 清零,挂起范围内如果有代码改动了配置或可见性,就调用 addWindowLayoutReasons 打上对应标记。最后 continueWindowLayout 把 mLayoutReasons != 0 作为 hasChanges 传给 continueLayout。这样只有在 defer 范围内确实发生了需要布局的变化时,continue 才会触发一次布局,避免无意义的空布局。

addWindowLayoutReasons 的几个调用点:

// ActivityRecord.java:5007 可见性变化时mAtmService.addWindowLayoutReasons(        ActivityTaskManagerService.LAYOUT_REASON_VISIBILITY_CHANGED);// WindowOrganizerController.java:503 客户端没有自己处理配置时mService.addWindowLayoutReasons(LAYOUT_REASON_CONFIG_CHANGED);

三、典型使用场景

1. Activity 启动

ActivityStarter 在启动 Activity 的核心逻辑 startActivityInner 前后加 defer/continue,把启动过程中的窗口变化合并成一次布局:

// ActivityStarter.java:1659mService.deferWindowLayout();Trace.traceBegin(Trace.TRACE_TAG_WINDOW_MANAGER, "startActivityInner");result = startActivityInner(r, sourceRecord, voiceSession, voiceInteractor,        startFlags, doResume, options, inTask, inTaskFragment, restrictedBgActivity,        intentGrants);// ...mService.continueWindowLayout();

2. 屏幕旋转

DisplayRotation 在旋转后发送新配置、应用窗口事务时用 defer/continue 包住,保证配置更新和事务应用作为一个整体:

// DisplayRotation.java:603mService.mAtmService.deferWindowLayout();try {    mDisplayContent.sendNewConfiguration();if (t != null) {        mService.mAtmService.mWindowOrganizerController.applyTransaction(t);    }finally {    mService.mAtmService.continueWindowLayout();}

3. Activity 结束(finishIfPossible)

ActivityRecord.finishIfPossible 是 Activity 结束的入口,defer/continue 包住了整个 finish 流程:

// ActivityRecord.java:3361mAtmService.deferWindowLayout();try {    mTaskSupervisor.mNoHistoryActivities.remove(this);    makeFinishingLocked();// ...    finishActivityResults(resultCode, resultData, resultGrants);// ...    mTransitionController.requestCloseTransitionIfNeeded(endTask ? task : this);if (isState(RESUMED)) {// 准备关闭转场动画        mDisplayContent.prepareAppTransition(TRANSIT_CLOSE);// 提前截取 task 快照        mAtmService.mWindowManager.mTaskSnapshotController.snapshotTasks(tasks);// 通知 WM 这个窗口要移除        setVisibility(false);// 开始 pause 流程        getTaskFragment().startPausing(false/* userLeaving */false/* uiSleeping */,null/* resuming */"finish");    } elseif (!isState(PAUSING)) {// ...finalboolean removedActivity = completeFinishing("finishIfPossible") == null;// ...return removedActivity ? FINISH_RESULT_REMOVED : FINISH_RESULT_REQUESTED;    }return FINISH_RESULT_REQUESTED;finally {    mAtmService.continueWindowLayout();}

这个流程里会连续修改多个状态:把 activity 标记为 finishing、调整焦点、准备关闭转场、截取快照、把窗口设为不可见、启动 pause。这些变化如果分别触发布局,中间状态(比如窗口已经隐藏但转场还没准备好)就会被单独渲染。用 defer/continue 把它们合并成一次布局。

其余使用位置(RecentsAnimation.java:210KeyguardController.java:245Task.javaTaskFragment.javaWindowOrganizerController.java:387RootWindowContainer.java:1980)都是同一个模式:deferWindowLayout(),中间改多个窗口状态,最后在 finally 里 continueWindowLayout() 保证即使抛异常也会恢复布局。

总结

deferWindowLayout 和 continueWindowLayout 是 WMS 内部用于批量窗口操作时延后布局的机制。底层由 WindowSurfacePlacer 的 mDeferDepth 计数器实现嵌套安全的挂起/恢复,挂起期间的布局请求通过 mDeferredRequests 计数,最后统一执行一次。上层 ActivityTaskManagerService 额外用 mLayoutReasons 位掩码记录 defer 范围内发生的变化,使 continue 时能判断是否真的需要执行布局。这套机制用于 Activity 启动、屏幕旋转、Recents、Keyguard、窗口事务等需要一次性修改多个窗口状态的场景。

学习fw课程和性能相关知识有啥疑问,请记得联系马哥本人或者在马哥vip群中进行讨论

更多vip干货独享知识,及面试定制指导上岸fw工程师服务,课程优惠购买成为vip学员进入vip群,积极讨论各种行业难点痛点疑难问题,答疑服务等。

请联系马哥微信:

Android Framework开发rom实战合集课表/车载车机手机高级系统开发工程必会技能
重大消息:Hal+perfetto-systrace+SurfaceFlinger合集新专题发布
重大消息:ShellTransition项目实战专题aosp15版本首发优惠获取
开学第一课:安卓音频框架Audio子系统实战专题--首发优惠活动
2026第一课:安卓14-1车机手机三分屏实战专题--首发优惠活动

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-08-20 09:25:31 HTTP/2.0 GET : https://c.mffb.com.cn/a/505141.html
  2. 运行时间 : 0.208798s [ 吞吐率:4.79req/s ] 内存消耗:4,313.73kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=9002b830e5b480ab416235b554cb16b4
  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.000588s ] mysql:host=127.0.0.1;port=3306;dbname=c_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000661s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.005620s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.003918s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000637s ]
  6. SELECT * FROM `set` [ RunTime:0.000222s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000625s ]
  8. SELECT * FROM `article` WHERE `id` = 505141 LIMIT 1 [ RunTime:0.003728s ]
  9. UPDATE `article` SET `lasttime` = 1787189132 WHERE `id` = 505141 [ RunTime:0.006676s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.000795s ]
  11. SELECT * FROM `article` WHERE `id` < 505141 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.006023s ]
  12. SELECT * FROM `article` WHERE `id` > 505141 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.004161s ]
  13. SELECT * FROM `article` WHERE `id` < 505141 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.016378s ]
  14. SELECT * FROM `article` WHERE `id` < 505141 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.079719s ]
  15. SELECT * FROM `article` WHERE `id` < 505141 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.006255s ]
0.210374s