Git Product home page Git Product logo

xhprof-custem's Introduction

xhprof-custem

项目目的:

 1. 为了方便在项目中引入xhprof,只需要在项目入口文件包含这里的auto_prepend_xhprof.php.
 2. 对xhprof的一些个性化修改.

使用步骤:

 1. 安装配置xhprof.
 2. 从github下载xhprof-custem代码
 3. 在自己的项目中引入xhprof-custem代码
 4. 访问站点,测试xhprof是否成功

下载代码:

git clone https://github.com/cooldaniel/xhprof-custem.git

假设目录:

~/code/myproject/web/index.php	// 项目入口文件
~/code/xhprof-custem			// git下载的代码

具体修改:

// 在index.php开头加入代码,即可在项目中引用xhprof
require __DIR__ .'/../../xhprof-custem/auto_prepend_xhprof.php';

// 替换文件,路径和安装的xhprof一样
// 如有需要,可以先备份原文件
/xhprof-custem/xhprof/xhprof_lib/utils/xhprof_lib.php

xhprof安装调试参考:

https://www.showdoc.com.cn/p/971ec56990de0edb7cbd511a073afea2

xhprof-custem's People

Contributors

cooldaniel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.