wakatime
Back in June, I wrote an article about Codeivate, which is capable of tracking the language you are currently programming in, awarding points to your virtual profile in a manner similar to an RPG. One of the comments I received on that article was a link to a tool named WakaTime, which has similar capabilities. However, WakaTime is promoted as a time tracker, rather then a tool to measure your coding habits.
早在六月,我写了一篇关于Codeivate的文章 ,该文章能够跟踪您当前正在使用的语言,并以类似于RPG的方式将分数授予您的虚拟配置文件。 我收到该文章的评论之一是指向名为WakaTime的工具的链接,该工具具有类似的功能。 但是,WakaTime被提升为时间跟踪器,而不是用来衡量您的编码习惯的工具。
WakaTime records several things when you’re using your editor. First it records the absolute path of the file you are working in. This way, you can get a clear view of which files you have been working on in a certain time period. It also records the current time, what triggered the event and the current language syntax for the opened file. Next to that, it also tracks your current project and branch if possible, and the total number of lines for the current file.
使用编辑器时,WakaTime会记录一些内容。 首先,它记录了您正在处理的文件的绝对路径。通过这种方式,您可以清楚地了解在特定时间段内正在处理哪些文件。 它还记录当前时间,触发事件的原因以及打开文件的当前语言语法。 紧接着,它还会跟踪您当前的项目和分支(如果可能),以及当前文件的总行数。
These records are either stored locally until you are connected to the internet or on so called heartbeat events. Such a heartbeat is triggered in three different ways:
这些记录或者存储在本地,直到您连接到Internet为止,或者存储在所谓的心跳事件中 。 这种心跳是通过三种不同的方式触发的:
- Every two minutes if you actively use the editor 如果您积极使用编辑器,则每两分钟
- When you switch between files 在文件之间切换时
- When you write something in a file 当您在文件中写东西时
WakaTime can be integrated into an even bigger range of editors. From text editors like Sublime to IDE’s like XCode and PhpStorm. For this article, we’ll use the same editors as we have used in the Codeivate article: Sublime Te