当前位置:网站首页>Thinkphp commonly used techniques
Thinkphp commonly used techniques
2022-08-04 01:02:00 【Robin proposed】
One, check the code running time, memory overhead
View running timeDebug::remark('begin'); -- start markDebug::remark('end'); -- end markDebug::getRangeTime('begin','end',6) -- The third parameter defaults to 4. If you think this statistical precision is not enough, you can also set it.Log::record("/index/my_api".Debug::getRangMem('begin','end',6))Check out the memory overhead:Debug::remark('begin'); -- start markDebug::remark('end'); -- end markDebug::getRangeMem('begin','end') -- statistical unit is kbhelper functiondebug('begin');// ...other code snippetsdebug('end');// ...maybe there is other code here// perform statistical intervalecho debug('begin','end').'s';echo debug('begin','end',6).'s';echo debug('begin','end','m').'kb';边栏推荐
- 2023年第六届亚太应用数学与统计学国际会议(AMS 2023)
- pcl点云数据 转化为 Eigen::Map
- 跨域问题解决方式 代理服务器
- GraphQL背后处理及执行过程是什么
- nodeJs--async/await
- typescript52 - simplify generic function calls
- How to find the cause of Fiori Launchpad routing errors by single-step debugging
- outputBufferIndex = mDecode.dequeueOutputBuffer(bufferInfo, 0) 一直返回为-1
- 特征值与特征向量
- 求解同余方程 数论 扩展欧几里得
猜你喜欢

typescript48-函数之间的类型兼容性

typescript52 - simplify generic function calls

【虚拟户生态平台】虚拟化平台安装时遇到的坑

typescript54 - generic constraints

螺旋矩阵_数组 | leecode刷题笔记

nodejs+npm的安装与配置

七夕佳节即将来到,VR全景云游为你神助攻

ASP.NET 获取数据库的数据并写入到excel表格中

LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之三:两次优化

typescript58 - generic classes
随机推荐
高斯推断推导
fsdbDump用法
研究生新生培训第四周:MobileNetV1, V2, V3
C # WPF equipment monitoring software (classic) - the next
多渠道打包
【性能优化】MySQL常用慢查询分析工具
螺旋矩阵_数组 | leecode刷题笔记
typescript48-函数之间的类型兼容性
How to find the cause of Fiori Launchpad routing errors by single-step debugging
GNSS文章汇总
电子组装行业对MES管理系统的需求分析
typescript57 - Array generic interface
新一代服务网关Gateway的实践笔记
Modulo operation (MOD)
OpenCV如何实现Sobel边缘检测
Apache DolphinScheduler新一代分布式工作流任务调度平台实战-中
教你如何定位不合理的SQL?并优化之
LeetCode third topic (the Longest Substring Without Repeating Characters) trilogy # 3: two optimization
typescript56-泛型接口
哎,又跟HR在小群吵了一架!