{ "info": { "author": "ruifengyun", "author_email": "rfyiamcool@163.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.0", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "## \u9879\u76ee\u540d\n\n`profiler_online`\n\n### \u4ecb\u7ecd:\n\u7528\u6765\u89e3\u6790\u67e5\u627epython\u7a0b\u5e8f\u53ef\u80fd\u5b58\u5728\u7684\u5404\u65b9\u9762\u6027\u80fd\u6216\u8005\u5947\u8469\u95ee\u9898\u7684\u5de5\u5177,\u901a\u8fc7web\u8bbf\u95ee\u8bbf\u95ee\u53ef\u4ee5\u76f4\u63a5\u62ff\u5230\u706b\u7130\u5410.\n\nWill Add Future:\n\n* \u52a0\u5165\u5185\u5b58\u7684\u76f8\u5173\u4fe1\u606f\n* \u67e5\u8be2\u65f6\u95f4\u8303\u56f4\n\n### \u5b89\u88c5:\n\n**pypi:**\n\n```\npip install profiler_online\n```\n\n**\u6e90\u7801\u5b89\u88c5:**\n\n```\ngit clone https://github.com/rfyiamcool/profiler_online.git\ncd profiler_online\npython setup.py install\n```\n\n\n### \u7528\u6cd5:\n\n\u8fd9\u8fb9\u5df2\u7ecf\u5c01\u88c5\u597d\u4e86\uff0c\u4f60\u9700\u8981\u505a\u7684\u53ea\u662f\u628a\u6027\u80fd\u5206\u6790\u6a21\u5757\u5f15\u5165\u5230\u4f60\u7684\u5e94\u7528\u91cc\u9762.\n\n```\nfrom profiler_online import run_profiler\nrun_profiler()\n```\n\n### \u6d4b\u8bd5:\n\n\u6253\u5f00\u6d4f\u89c8\u5668 http://127.0.0.1:8080 \u8fd9\u6837\u5c31\u53ef\u4ee5\u663e\u793a\u6b63\u5728\u8fd0\u884c\u670d\u52a1\u7684\u6027\u80fd\u706b\u7130\u56fe\u4e86.\n\n![image](https://github.com/rfyiamcool/profiler_online/raw/master/img/demo.png)\n\n### \u95ee\u9898:\n\n\u4e0b\u9762\u662f\u4ee5\u524d\u521b\u5efa\u706b\u7130\u56fe\u7684\u65b9\u6cd5.\n\n```\npython test.py\ncurl \"127.0.0.1:8080\" | profiler_online/tools/flamegraph.pl > flame.html\n```\n\n\u6539\u8fdb\u7684\u65b9\u6cd5:\n```\n\u76f4\u63a5\u6d4f\u89c8\u5668\u6253\u5f00,\u5730\u5740\u680f --> 127.0.0.1:8080\n```\n\n\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d,\u9047\u5230\u4e86python\u7cfb\u7edf\u8c03\u7528\u65f6\u4e0d\u80fd\u6b63\u5e38\u6355\u83b7\u8f93\u51fa. \u73b0\u5728\u5df2\u7ecf\u6539\u4e3a\u4e34\u65f6\u6587\u4ef6\u7684\u65b9\u5f0f.\n```\ncmdstr = './profiler_online/tools/flamegraph.pl'\np = subprocess.Popen(cmdstr, stdin = subprocess.PIPE, stderr = subprocess.PIPE, shell = True)\np.stdin.write(stats)\np.stdin.flush()\ntry:\n if p.stderr:\n stats = p.stderr.read()\n p.stderr.flush()\n if p.stdout:\n stats = p.stdout.read()\nexcept Exception, e:\n print e,Exception\n```", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://xiaorui.cc", "keywords": "profiler_online,fengyun", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "profiler_online", "package_url": "https://pypi.org/project/profiler_online/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/profiler_online/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://xiaorui.cc" }, "release_url": "https://pypi.org/project/profiler_online/2.2/", "requires_dist": null, "requires_python": null, "summary": "profile python app online, Display FlameGraph in a browser", "version": "2.2" }, "last_serial": 1781020, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "ffc56dbbb3ab18b354df136e0e5d512e", "sha256": "3d1ad493f86baff7b5dcaca2abfebc248453e8202272b4fad4370c66aeaeb465" }, "downloads": -1, "filename": "profiler_online-1.0.tar.gz", "has_sig": false, "md5_digest": "ffc56dbbb3ab18b354df136e0e5d512e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3396, "upload_time": "2015-10-22T06:21:37", "url": "https://files.pythonhosted.org/packages/ff/7d/8c4ead485f7a307d2f67440217aea5e083dec9219a4ca4cc8a9d1b576dd4/profiler_online-1.0.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "66796684fd7a6be7f83b79af5c46072b", "sha256": "fd1b83ce47a82b2dc80745df81a0fabc6ed315e10aed93ad560049051e00ea1a" }, "downloads": -1, "filename": "profiler_online-2.0.tar.gz", "has_sig": false, "md5_digest": "66796684fd7a6be7f83b79af5c46072b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16699, "upload_time": "2015-10-22T06:51:20", "url": "https://files.pythonhosted.org/packages/58/e7/0adb7d79ab8a814826110be37aafa31292ec0e6865f3682e596cd2d195e6/profiler_online-2.0.tar.gz" } ], "2.2": [ { "comment_text": "", "digests": { "md5": "8e502ae8ef202b417d1723fbc83ccbe2", "sha256": "879eb8828252b7cd375ba1f6c9f2db349a5b0fce7f7ce14123b4b2e9b27e0780" }, "downloads": -1, "filename": "profiler_online-2.2.tar.gz", "has_sig": false, "md5_digest": "8e502ae8ef202b417d1723fbc83ccbe2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16985, "upload_time": "2015-10-22T07:40:44", "url": "https://files.pythonhosted.org/packages/79/99/4466281c772a327ad5808cd3b18fa9b72d0e026e55b01b5a425fe2454359/profiler_online-2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8e502ae8ef202b417d1723fbc83ccbe2", "sha256": "879eb8828252b7cd375ba1f6c9f2db349a5b0fce7f7ce14123b4b2e9b27e0780" }, "downloads": -1, "filename": "profiler_online-2.2.tar.gz", "has_sig": false, "md5_digest": "8e502ae8ef202b417d1723fbc83ccbe2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16985, "upload_time": "2015-10-22T07:40:44", "url": "https://files.pythonhosted.org/packages/79/99/4466281c772a327ad5808cd3b18fa9b72d0e026e55b01b5a425fe2454359/profiler_online-2.2.tar.gz" } ] }