{ "info": { "author": "Matt Youell", "author_email": "matt@youell.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Quality Assurance" ], "description": "Swiss Time - A diagnostic code timer\r\n=======================================\r\nSwiss Time is a diagnostic tool for finding slow spots in code. It sits somewhere between a raw timer and a profiler.\r\n\r\n\r\n\r\nOnce started, each call to tick() will record a time difference along a label that you provide.\r\n\r\nIn this way you build a timeline over the portion of code you are analyzing.\r\n\r\nYou can print a report of the results or gather report data to process your own way.\r\n\r\nUsage\r\n=====\r\n\r\nImport and start the timer at the beginning of the code you want to analyze.\r\n\r\n >>> import swisstime\r\n >>> swisstime.start()\r\n\r\nAt the end of each section you want measured, call tick() with a description of that piece of code:\r\n\r\n >>> swisstime.tick(\"Load input image\")\r\n\r\nDo this after each section you are measuring:\r\n\r\n >>> swisstime.tick(\"Build masks\")\r\n\r\nTo display a report of your results, print the output of swisstime.report():\r\n\r\n >>> print( swisstime.report() )\r\n\r\nYour output will be a table of times and labels for each section you measured.\r\n\r\nIf you want the raw report data you can call:\r\n\r\n>>> swisstime.data()\r\n\r\nto get a list of label/time tuples.\r\n\r\nCalling start() will reset all data and begin the analysis again.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/built/swisstime", "keywords": "development diagnostics", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "swisstime", "package_url": "https://pypi.org/project/swisstime/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/swisstime/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/built/swisstime" }, "release_url": "https://pypi.org/project/swisstime/0.9.0/", "requires_dist": null, "requires_python": null, "summary": "Time the performance of portions of code and produce a report when done.", "version": "0.9.0" }, "last_serial": 2372056, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "5d6ade5b9b608ceebe63026928f88933", "sha256": "72fb2d34ab9ece9652d7715c64c86718c3e56a2e608d6b793cfea654acef0aa7" }, "downloads": -1, "filename": "swisstime-0.9.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5d6ade5b9b608ceebe63026928f88933", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3702, "upload_time": "2016-02-09T02:23:56", "url": "https://files.pythonhosted.org/packages/18/8a/41d1d7453585225968097bf1a0899284768c03305d0bcdd7ca9143f5d7c5/swisstime-0.9.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dda3e29450b3a79b146f982ff405e7b7", "sha256": "671a0404a24a102bab83c790dc4053564b0edb70b9db658313fd74b36c07e84d" }, "downloads": -1, "filename": "swisstime-0.9.0.tar.gz", "has_sig": false, "md5_digest": "dda3e29450b3a79b146f982ff405e7b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2116, "upload_time": "2016-02-09T02:24:01", "url": "https://files.pythonhosted.org/packages/d8/54/5c6b696581963b4ef6672c548139672a154fd28f17e69f7764cac93f5883/swisstime-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5d6ade5b9b608ceebe63026928f88933", "sha256": "72fb2d34ab9ece9652d7715c64c86718c3e56a2e608d6b793cfea654acef0aa7" }, "downloads": -1, "filename": "swisstime-0.9.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5d6ade5b9b608ceebe63026928f88933", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3702, "upload_time": "2016-02-09T02:23:56", "url": "https://files.pythonhosted.org/packages/18/8a/41d1d7453585225968097bf1a0899284768c03305d0bcdd7ca9143f5d7c5/swisstime-0.9.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dda3e29450b3a79b146f982ff405e7b7", "sha256": "671a0404a24a102bab83c790dc4053564b0edb70b9db658313fd74b36c07e84d" }, "downloads": -1, "filename": "swisstime-0.9.0.tar.gz", "has_sig": false, "md5_digest": "dda3e29450b3a79b146f982ff405e7b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2116, "upload_time": "2016-02-09T02:24:01", "url": "https://files.pythonhosted.org/packages/d8/54/5c6b696581963b4ef6672c548139672a154fd28f17e69f7764cac93f5883/swisstime-0.9.0.tar.gz" } ] }