{ "info": { "author": "Erik Gafni", "author_email": "egafni@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "PsProfile\n=========\n\nA python process profiler. Watches a process tree and emits resource usage metrics. Uses the psutil library, so runs on a mac and linux (haven't tested Windows,\nbut theoretically it will work). You will get slightly different fields back depending on the operating system.\nUsed by the `Cosmos Workflow Management System `_.\n\n\nInstall\n========\n\npip install psprofile\n\nUsage\n=====\n\n.. code-block:: bash\n\n $ psprofile -h\n usage: psprofile [-h] [-o OUTPUT_FILE] [-i POLL_INTERVAL] [-w WAIT] ...\n\n Profile resource usage of a command\n\n positional arguments:\n command The command to run.\n\n optional arguments:\n -h, --help show this help message and exit\n -o OUTPUT_FILE, --output_file OUTPUT_FILE\n File to store output of profile to.\n -i POLL_INTERVAL, --poll_interval POLL_INTERVAL\n How often to poll the resource usage information in\n /proc, in seconds (default 1).\n -w WAIT, --wait WAIT time to wait for executable to exist\n\n $ psprofile ls $HOME\n $ psprofile python test.py\n $ psprofile \"echo hi; sleep ls\"\n\n # note that:\n $ psprofile echo hi > tmp/test # (psprofile's output is redirected)\n # is not the same as:\n $ psprofile \"echo hi > /tmp/test\" # (echo's output is redirected)\n\nExample output:\n\n.. code-block:: bash\n\n $ psprofile /path/to/bash.script\n\n.. code-block:: json\n\n {\n \"avg_num_threads\": 1,\n \"cpu_time\": 0,\n \"avg_vms_mem_kb\": 11427840,\n \"io_read_kb\": 4096,\n \"io_write_kb\": 0,\n \"max_num_threads\": 1,\n \"system_time\": 0,\n \"max_rss_mem_kb\": 1470464,\n \"percent_cpu\": 0,\n \"max_vms_mem_kb\": 11427840,\n \"wall_time\": 2,\n \"ctx_switch_voluntary\": 12,\n \"user_time\": 0,\n \"avg_num_fds\": 4,\n \"num_polls\": 1,\n \"max_num_fds\": 4,\n \"io_write_count\": 0,\n \"avg_rss_mem_kb\": 1470464,\n \"ctx_switch_involuntary\": 3,\n \"io_read_count\": 12,\n \"exit_status\": 0\n }", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/egafni/PsProfile", "keywords": null, "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "psprofile", "package_url": "https://pypi.org/project/psprofile/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/psprofile/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/egafni/PsProfile" }, "release_url": "https://pypi.org/project/psprofile/0.2/", "requires_dist": null, "requires_python": null, "summary": "Collects resource usage of an executed script", "version": "0.2" }, "last_serial": 1593694, "releases": { "0.1": [], "0.1.1": [ { "comment_text": "", "digests": { "md5": "2dc44fc5a066f0fd9e25b29517003213", "sha256": "ed10884f7847a206b7b352948ef172c52c99f666b59986a3c90d1a28e7226787" }, "downloads": -1, "filename": "psprofile-0.1.1.tar.gz", "has_sig": false, "md5_digest": "2dc44fc5a066f0fd9e25b29517003213", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3841, "upload_time": "2014-08-14T18:49:42", "url": "https://files.pythonhosted.org/packages/5a/a2/3e125135f20e03f032e4503a5c7147b5ce799a0cd2d0e1613ee02b9dcf4a/psprofile-0.1.1.tar.gz" } ], "0.1.10": [ { "comment_text": "", "digests": { "md5": "bc3fb2e8a5d1f3c75d87353f7e5fe2fe", "sha256": "b62404a36b5a672d701ecb3bc18a14fcfd3ff0e1783526e1bbbb8e475f50ea60" }, "downloads": -1, "filename": "psprofile-0.1.10.tar.gz", "has_sig": false, "md5_digest": "bc3fb2e8a5d1f3c75d87353f7e5fe2fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4289, "upload_time": "2014-08-27T20:45:21", "url": "https://files.pythonhosted.org/packages/77/43/34f05094d237a121d0385f6c9f234cd4bb4c6e4d85ab090a6d8635f849f7/psprofile-0.1.10.tar.gz" } ], "0.1.11": [ { "comment_text": "", "digests": { "md5": "e6027f30cea51d1b0e90aeb64d599ceb", "sha256": "24a58b64aee86a27061105d45f2a368ad3a9d3eef29a4b52a03952de71c910e1" }, "downloads": -1, "filename": "psprofile-0.1.11.tar.gz", "has_sig": false, "md5_digest": "e6027f30cea51d1b0e90aeb64d599ceb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4281, "upload_time": "2014-08-27T20:45:59", "url": "https://files.pythonhosted.org/packages/f5/84/934634cf761e795e066edf1fd2ac3dadb3308885bcdf4575f8a2a6993958/psprofile-0.1.11.tar.gz" } ], "0.1.12": [ { "comment_text": "", "digests": { "md5": "a3fa2ec72ac993f972f004963de02716", "sha256": "7d8c914e2ab7beb1456be0ce20fcb47af2211ade1f55de59e5b261dd5b6becd2" }, "downloads": -1, "filename": "psprofile-0.1.12.tar.gz", "has_sig": false, "md5_digest": "a3fa2ec72ac993f972f004963de02716", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4284, "upload_time": "2014-08-27T20:48:58", "url": "https://files.pythonhosted.org/packages/de/40/6a004795c0441ac503e145fa324c41b13d77e0933742e5dc2c53821c09b1/psprofile-0.1.12.tar.gz" } ], "0.1.13": [ { "comment_text": "", "digests": { "md5": "1613fe26c44ad52acd8272b6611bb1b3", "sha256": "501f12e2793ae9a40b37d558c5d6e09eed3035f5b37469f5c77248a79617d939" }, "downloads": -1, "filename": "psprofile-0.1.13.tar.gz", "has_sig": false, "md5_digest": "1613fe26c44ad52acd8272b6611bb1b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4281, "upload_time": "2014-08-27T20:50:34", "url": "https://files.pythonhosted.org/packages/7d/4a/2f7ee41d847a09a043e1761db81515181bef4618d677c2ae9fc0d8e5d388/psprofile-0.1.13.tar.gz" } ], "0.1.14": [ { "comment_text": "", "digests": { "md5": "ff4629905ad2e07e4ea7375491ab81a0", "sha256": "6fefd2011c3fb42456550ba9348b2542b044309430e9a89b2dd3b149991873e7" }, "downloads": -1, "filename": "psprofile-0.1.14.tar.gz", "has_sig": false, "md5_digest": "ff4629905ad2e07e4ea7375491ab81a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4296, "upload_time": "2014-09-03T00:07:41", "url": "https://files.pythonhosted.org/packages/9d/a2/edb4fe6e71c4b39534b38bc720b425d651966e5528092c35aa1f7d399437/psprofile-0.1.14.tar.gz" } ], "0.1.15": [ { "comment_text": "", "digests": { "md5": "2b5c5c6caff550b87c53278d41b86737", "sha256": "a3c008cc418890c5bb19d376dac8ca1bd3604ec6a7869dbbc928d3fe69559850" }, "downloads": -1, "filename": "psprofile-0.1.15.tar.gz", "has_sig": false, "md5_digest": "2b5c5c6caff550b87c53278d41b86737", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4289, "upload_time": "2014-09-03T00:08:03", "url": "https://files.pythonhosted.org/packages/9c/15/4cff37b5bc0e4350ff53d270c8f781ccef6becca1d7bbe5837e7d3cb9720/psprofile-0.1.15.tar.gz" } ], "0.1.16": [ { "comment_text": "", "digests": { "md5": "450b8d9d0fe22ffbede978b69ded1b5e", "sha256": "1e7441bad85db433aab7e4e64bac9dcb5d33f04d2619c299e7908283db23f4fd" }, "downloads": -1, "filename": "psprofile-0.1.16.tar.gz", "has_sig": false, "md5_digest": "450b8d9d0fe22ffbede978b69ded1b5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4269, "upload_time": "2014-09-05T23:35:20", "url": "https://files.pythonhosted.org/packages/7b/aa/443d79d7ccf93c7c72b644b193d26eb08ae0d767ffa270684fddaaff7d80/psprofile-0.1.16.tar.gz" } ], "0.1.17": [ { "comment_text": "", "digests": { "md5": "6a5b053e386b042a7cef2488370c7406", "sha256": "695e1704338bd4c04985175b0fd2880ae92478e1ea283690c00a3365c8b1c895" }, "downloads": -1, "filename": "psprofile-0.1.17.tar.gz", "has_sig": false, "md5_digest": "6a5b053e386b042a7cef2488370c7406", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4267, "upload_time": "2014-09-05T23:40:11", "url": "https://files.pythonhosted.org/packages/ed/7d/ab129caa6ffe6b74ff914e494150ebdfd60e2698068a46671bad30cefd02/psprofile-0.1.17.tar.gz" } ], "0.1.18": [ { "comment_text": "", "digests": { "md5": "1695ebe1bcd20c7b69ff83c465030627", "sha256": "de2d63635d6519d48c6613e8444aee0570413451e063b21355f77c108d6c91bf" }, "downloads": -1, "filename": "psprofile-0.1.18.tar.gz", "has_sig": false, "md5_digest": "1695ebe1bcd20c7b69ff83c465030627", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4325, "upload_time": "2014-12-18T23:33:06", "url": "https://files.pythonhosted.org/packages/e7/e4/aa95427f011d65e782f7b6cc06f02039c855ea545f4abf119704114e617d/psprofile-0.1.18.tar.gz" } ], "0.1.19": [ { "comment_text": "", "digests": { "md5": "567234ad2daf07416beddc9780a58f14", "sha256": "b03c9382e8c9d7500279a4fb85df250f9712079536e1a5ee6924afb519a0df9b" }, "downloads": -1, "filename": "psprofile-0.1.19.tar.gz", "has_sig": false, "md5_digest": "567234ad2daf07416beddc9780a58f14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4321, "upload_time": "2014-12-18T23:34:52", "url": "https://files.pythonhosted.org/packages/49/6d/942c079ae295922bd45bf0bbcddc9d370d9f75fc1a9dbac1108d12dda184/psprofile-0.1.19.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "735acf44231948ab54a0c8986c86c7e6", "sha256": "585c83ae9064a11026e8b4df307d9e5f2f3d0e28f1a5af004c1a8c8f33df4f81" }, "downloads": -1, "filename": "psprofile-0.1.3.tar.gz", "has_sig": false, "md5_digest": "735acf44231948ab54a0c8986c86c7e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3949, "upload_time": "2014-08-21T17:00:36", "url": "https://files.pythonhosted.org/packages/c9/d4/522d8dcfdc910d1eb93005af3795475a5b35b42564f84a29702e7464a952/psprofile-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "11fdcd7fa2f7b79b3ee20bf15cdafd00", "sha256": "d1aa166bb42b2d61d79587ded86a078f389ec7f0cbca691f64257609faab053c" }, "downloads": -1, "filename": "psprofile-0.1.4.tar.gz", "has_sig": false, "md5_digest": "11fdcd7fa2f7b79b3ee20bf15cdafd00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4067, "upload_time": "2014-08-21T17:16:39", "url": "https://files.pythonhosted.org/packages/05/2e/7e3bca66abf959be92030e070c1e88972acb258495478580d7287a73aa65/psprofile-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "0c076e8fe43254a439963e8364cb68f6", "sha256": "68bf9d8d2970af2ba8999b2342293c4273d91ec39a0a0eea491408b554c4328f" }, "downloads": -1, "filename": "psprofile-0.1.5.tar.gz", "has_sig": false, "md5_digest": "0c076e8fe43254a439963e8364cb68f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4119, "upload_time": "2014-08-21T17:32:47", "url": "https://files.pythonhosted.org/packages/fd/3f/e0fdd0864e97dcc61f825e797b8c07a9c04bb6646bcede546c5790df85ab/psprofile-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "eb3a05973c0c1a3ee0eb3a82a06f78a2", "sha256": "013dd766ea13d7c57c03b3a7c16a50115cfcede3329903c9f451c7b9f7a80f54" }, "downloads": -1, "filename": "psprofile-0.1.6.tar.gz", "has_sig": false, "md5_digest": "eb3a05973c0c1a3ee0eb3a82a06f78a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4128, "upload_time": "2014-08-21T17:38:27", "url": "https://files.pythonhosted.org/packages/0b/4d/fa670c5aa19d0484e2773432d2edbeeba5406bd2aeca8ac9efb0e248afe6/psprofile-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "b668df764be4e1622421a4185fedfe08", "sha256": "2b28cc53b78371ad548412fc64162aa3e9fc425c0451c83777c4184f0342f53e" }, "downloads": -1, "filename": "psprofile-0.1.7.tar.gz", "has_sig": false, "md5_digest": "b668df764be4e1622421a4185fedfe08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4114, "upload_time": "2014-08-21T22:13:44", "url": "https://files.pythonhosted.org/packages/d7/27/57390a41fcec1d980e170d6423b76dbebadd2f0670ab4697fa8a35ecc3f2/psprofile-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "17c42718325143db3f74b27fc101eb3b", "sha256": "32cb2e46b6a3291b0916aa7f7e6ae849b85da988e64c4e989155ff212d784635" }, "downloads": -1, "filename": "psprofile-0.1.8.tar.gz", "has_sig": false, "md5_digest": "17c42718325143db3f74b27fc101eb3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4126, "upload_time": "2014-08-25T17:42:19", "url": "https://files.pythonhosted.org/packages/0c/f8/63011fea83a1847e8e41c6bbc62db69f4437a21a428a2b83463e3e6ea052/psprofile-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "cc09f2ee1bffa634ea215caee533e4cb", "sha256": "5262c04a77340cddb7a8155c8695bd279a3ba228147b2e4db746d1862644cfde" }, "downloads": -1, "filename": "psprofile-0.1.9.tar.gz", "has_sig": false, "md5_digest": "cc09f2ee1bffa634ea215caee533e4cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4179, "upload_time": "2014-08-25T17:44:42", "url": "https://files.pythonhosted.org/packages/f9/5f/6d0ef3dd330e99d0dbed8e12f7f23ad88756f6d546ffe2c092484e01fefa/psprofile-0.1.9.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "e30b7cef36ab1cd9c8f9114bac9661f8", "sha256": "25f7301cf753371c7c5bba0b57c7b3d8bcbf53a178e12b811e57b078c00de551" }, "downloads": -1, "filename": "psprofile-0.2.tar.gz", "has_sig": false, "md5_digest": "e30b7cef36ab1cd9c8f9114bac9661f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4239, "upload_time": "2015-06-16T02:55:09", "url": "https://files.pythonhosted.org/packages/af/9e/59c72bb4ac9431803bf303a77bbad58c27d8000ebbdf1722dfaff4867a3e/psprofile-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e30b7cef36ab1cd9c8f9114bac9661f8", "sha256": "25f7301cf753371c7c5bba0b57c7b3d8bcbf53a178e12b811e57b078c00de551" }, "downloads": -1, "filename": "psprofile-0.2.tar.gz", "has_sig": false, "md5_digest": "e30b7cef36ab1cd9c8f9114bac9661f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4239, "upload_time": "2015-06-16T02:55:09", "url": "https://files.pythonhosted.org/packages/af/9e/59c72bb4ac9431803bf303a77bbad58c27d8000ebbdf1722dfaff4867a3e/psprofile-0.2.tar.gz" } ] }