当前位置: 首页 > news >正文

网站dns服务东莞是什么网站建设

网站dns服务,东莞是什么网站建设,临沂网站搜索排名,网站建设公司为什么没有官网目录 1. 说明 2. PHP脚本性能监测方案 2.1 安装xdebug 2.2 配置xdebug.ini 2.3 命令行与VS Code中使用 - 命令行 - VS Code 2.4 QCacheGrind 浏览 3. Python脚本性能监测方案 3.1 命令行 4. 工具 5.参考 1. 说明 获取我们的脚本程序运行时的指标#xff0c;对分析…目录 1. 说明 2. PHP脚本性能监测方案 2.1 安装xdebug 2.2 配置xdebug.ini  2.3 命令行与VS Code中使用 - 命令行 - VS Code 2.4 QCacheGrind 浏览 3. Python脚本性能监测方案 3.1 命令行 4. 工具 5.参考 1. 说明 获取我们的脚本程序运行时的指标对分析与解决性能瓶颈问题是非常重要的一环以下介绍在PHP与Python下的实践方案安装性能监测插件 产生监测日志 用QCacheGrind工具分析   2. PHP脚本性能监测方案 2.1 安装xdebug # wsl2下的ubuntu20 LTS为例apt install php7.4-xdebug2.2 配置xdebug.ini  tips: 路径可通过查php -i|grep xdebug.ini获取 zend_extensionxdebug.so# 指定日志输出路径 xdebug.output_dir /xdebug_logs xdebug.profiler_append 0xdebug.mode profile xdebug.start_with_request trigger xdebug.log_level 7 2.3 命令行与VS Code中使用 - 命令行 php -dxdebug.modeprofile myscript - VS Code 切记vscode运行时连接WSL选择对应的ubuntu目录不然你的运行环境将不一致 普通的launch.json {name: Debug current script in console,type: php,request: launch,program: ${file},cwd: ${fileDirname},runtimeArgs: [-d xdebug.modeprofile],externalConsole: false,port: 9003 } 以TP6为例的launch.json {name: Run PHP Profile,type: php,request: launch,cwd: ${workspaceRoot},program: ${workspaceRoot}/think,args: [myaction,0],runtimeArgs: [-d xdebug.modeprofile],externalConsole: false,port: 9003 } 截图:  2.4 QCacheGrind 浏览 生成的日志保存在 \\wsl.localhost\Ubuntu-20.04\xdebug_logs 3. Python脚本性能监测方案 python内部已经提供了cProfile性能监测模块我们用它就好只需要把它出来的文件转换一下 3.1 命令行 # 产生日志到./tmp/profile_output.prof python -m cProfile -o ./tmp/profile_output.prof ./class_test2.py# 转换格式 python -m pyprof2calltree -i profile_output.prof -o callgrind.cprof 4. 工具 工具说明QCacheGrind windows工具能可视化查看callgrind格式的性能数据 下载https://sourceforge.net/projects/qcachegrindwin/ PHPXDebug官网: Xdebug - Debugger and Profiler Tool for PHPPythoncProfile内置标准模块, 性能分析模块 例子: python -m cProfile -o ./tmp/profile_output.prof ./class_test2.pypyprof2calltree把cprofile产生的性能日志转换为QCacheGrind格式, 例子: python -m pyprof2calltree -i profile_output.prof -o callgrind.cprof 5.参考 - Xdebug: Documentation » Profiling - The Python Profilers — Python 3.13.0 documentation - https://gist.github.com/Susensio/efd9422e14556dff4122434c3603aff3
http://www.hkea.cn/news/14539914/

相关文章:

  • 网络小说写作网站网站设计与开发实验报告
  • 模板网站建设明细报价表网络运营商
  • 建设一个网站需要什么wordpress 相关文章推荐
  • 换服务器后网站首页不收录知识营销成功案例介绍
  • 创意互动 网站建设开发公司算是业主吗
  • 做网站需要跟客户了解什么软件慈溪建设银行支行网站
  • 适合网站开发的浏览器企业推广哪个平台好
  • 中能建设集团电子商务网站长沙优化网站
  • 网站建设公司在哪里一箭天网络推广
  • 做短租公寓民宿网站微信电影网站怎么做
  • 国内用什么做网站池州网站开发
  • 网站列表页内容教育 企业 重庆网站建设
  • 关于建设人才网站的竞争对手分析网站后台自动退出
  • 在线网站seo优化站内搜索本网站怎么做
  • 建设手机网站的方案中国建设工程有限公司
  • 网站换空间多少钱网站建网站建设专业
  • 郑州网站制作郑州网站制作案例appstar
  • php cms网站wordpress预格式化
  • 门户网站html模板下载永兴县网站建设专业
  • 淘宝客怎么样做自己的网站山西大同网站建设价格
  • 制作商城网站扬中信息网
  • 龙口建网站首选公司营销型网站的类型有哪些
  • 免费申请做网站平台源美网站建设
  • 企业网络品牌维护seo优化关键词分类
  • 太仓广告设计公司网站首页设计说明
  • 安徽网站开发培训重庆江北区网站建设公司
  • 写网站的教程百度网络小说排行榜
  • wordpress手机图片站jing.me wordpress主题
  • 青岛哪家做网站的公司百度seo多少钱一个月
  • 学院网站建设成效wordpress nocower-metro