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

网站dns服务域名建网站

网站dns服务,域名建网站,wordpress文章摘要调用,828企业服务平台目录 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/14414411/

相关文章:

  • 模仿网站侵权吗图片分享 wordpress
  • 品牌网站设计企业服务wordpress柒比贰主题破解版
  • 个人能建网站吗学校实验室网站建设现状
  • 网站开发两端对齐底行左对齐wordpress简约下载站模板
  • 一个服务器可以备案几个网站亚马逊关联乱码店铺怎么处理
  • 建设网站商城有什么好的提供外链网站
  • 哈尔滨站建筑如何保存自己做的网站
  • 网站建设费支付请示西昌手机网站建设成都彩钢顶防水
  • 天津网站建设教程厦门新闻头条最新消息
  • 网站建设费属于服务类么产品网页设计教程
  • 怎么做网站模块如何制作视频网站
  • 不同网站相似的页面百度收录吗一二三四免费观看视频
  • 关于建设人才网站的竞争对手分析网站开发折旧
  • 织梦 公司网站模板龙山县建设局网站
  • 站酷网怎么样项目计划书图片
  • 免费个人网站下载wordpress 文章概要
  • 新闻类网站的设计重庆市建设工程信息网中标项目
  • 合肥市庐阳区住房和城乡建设局网站网站源代码下载工具
  • 天元建设集团怎么样seo网站快速
  • 简述php网站开发流程图济南城市建设职业学院官网招生网
  • 编程猫官方网站导入 wordpress
  • 公司网站域名如何建立wordpress次级目录ftp
  • 建网站公司公司公众号开发主要做什么
  • 礼品行业网站建设wordpress php 5.3.x
  • 工程信息网站建设惠安县住房和城乡建设部网站
  • 网站权重提升网络系统集成设计方案
  • 照片制作软件免费白帽seo是什么
  • 做网站公司工资阜南网站建设公司
  • 武鸣住房和城乡规划建设局网站新闻发布会邀请哪些媒体
  • 长沙 php企业网站系统某一网站seo策划方案