{"action":"created","comment":{"url":"https://api.github.com/repos/code-mancers/rbkit-client/pulls/comments/35401287","id":35401287,"diff_hunk":"@@ -0,0 +1,74 @@\n+#include \"cpunode.h\"\n+\n+CpuNode::CpuNode(QString methodName,\n+           QString label,\n+           QString filename,\n+           QString threadId,\n+           int lineNo,\n+           int singletonMethod) : methodName(methodName),\n+                                    label(label),\n+                                    filename(filename),\n+                                    threadId(threadId),\n+                                    lineNo(lineNo),\n+                                    singletonMethod(singletonMethod) {}\n+\n+QDebug &operator<<(QDebug &stream, const CpuNode &myclass)\n+{\n+    stream << \"methodName :\" << myclass.methodName;\n+    stream << \"label :\" << myclass.label;\n+    stream << \"filename :\" << myclass.filename;\n+    stream << \"thread_id :\" << myclass.threadId;\n+    stream << \"line_no :\" << myclass.lineNo;\n+    stream << \"singleton_method :\" << myclass.singletonMethod;\n+\n+    return stream;\n+}\n+\n+void CpuNode::updateCalls(CpuNodePtr cpuNode)\n+{\n+    this->calls.push_back(cpuNode);\n+}\n+\n+void CpuNode::updateCalledBy(CpuNodePtr cpuNode)\n+{\n+    this->calledBy.push_back(cpuNode);\n+}\n+\n+QList<CpuNodePtr> CpuNode::getCalledBy()\n+{\n+    return this->calledBy;\n+}\n+\n+QList<CpuNodePtr> CpuNode::getCalls()\n+{\n+    return this->calls;\n+}\n+\n+QString CpuNode::getMethodName()\n+{\n+    return this->methodName;\n+}\n+\n+void CpuNode::updateData(QString methodName,\n+                      QString label,\n+                      QString filename,\n+                      QString thread_id,\n+                      int line_no,\n+                      int singleton_method)\n+{\n+    QString str = methodName + label + filename + thread_id;\n+    int a = line_no + singleton_method;","path":"rbkit-lib/model/cpunode.cpp","position":60,"original_position":60,"commit_id":"2ce57fc554b27c198cb62b2011c64d2ffc36de53","original_commit_id":"2ce57fc554b27c198cb62b2011c64d2ffc36de53","user":{"login":"iffyuva","id":1108398,"avatar_url":"https://avatars.githubusercontent.com/u/1108398?v=3","gravatar_id":"","url":"https://api.github.com/users/iffyuva","html_url":"https://github.com/iffyuva","followers_url":"https://api.github.com/users/iffyuva/followers","following_url":"https://api.github.com/users/iffyuva/following{/other_user}","gists_url":"https://api.github.com/users/iffyuva/gists{/gist_id}","starred_url":"https://api.github.com/users/iffyuva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iffyuva/subscriptions","organizations_url":"https://api.github.com/users/iffyuva/orgs","repos_url":"https://api.github.com/users/iffyuva/repos","events_url":"https://api.github.com/users/iffyuva/events{/privacy}","received_events_url":"https://api.github.com/users/iffyuva/received_events","type":"User","site_admin":false},"body":"can you explain this function? im unable to understand.","created_at":"2015-07-24T07:38:02Z","updated_at":"2015-07-24T07:38:02Z","html_url":"https://github.com/code-mancers/rbkit-client/pull/190#discussion_r35401287","pull_request_url":"https://api.github.com/repos/code-mancers/rbkit-client/pulls/190","_links":{"self":{"href":"https://api.github.com/repos/code-mancers/rbkit-client/pulls/comments/35401287"},"html":{"href":"https://github.com/code-mancers/rbkit-client/pull/190#discussion_r35401287"},"pull_request":{"href":"https://api.github.com/repos/code-mancers/rbkit-client/pulls/190"}}},"pull_request":{"url":"https://api.github.com/repos/code-mancers/rbkit-client/pulls/190","id":40745579,"html_url":"https://github.com/code-mancers/rbkit-client/pull/190","diff_url":"https://github.com/code-mancers/rbkit-client/pull/190.diff","patch_url":"https://github.com/code-mancers/rbkit-client/pull/190.patch","issue_url":"https://api.github.com/repos/code-mancers/rbkit-client/issues/190","number":190,"state":"open","locked":false,"title":"Cpuprof conventions","user":{"login":"ishankhare07","id":7482025,"avatar_url":"https://avatars.githubusercontent.com/u/7482025?v=3","gravatar_id":"","url":"https://api.github.com/users/ishankhare07","html_url":"https://github.com/ishankhare07","followers_url":"https://api.github.com/users/ishankhare07/followers","following_url":"https://api.github.com/users/ishankhare07/following{/other_user}","gists_url":"https://api.github.com/users/ishankhare07/gists{/gist_id}","starred_url":"https://api.github.com/users/ishankhare07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishankhare07/subscriptions","organizations_url":"https://api.github.com/users/ishankhare07/orgs","repos_url":"https://api.github.com/users/ishankhare07/repos","events_url":"https://api.github.com/users/ishankhare07/events{/privacy}","received_events_url":"https://api.github.com/users/ishankhare07/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-24T06:15:05Z","updated_at":"2015-07-24T07:38:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc19f10010589b6f0fcfccca5d4b37742a28587a","assignee":null,"milestone":{"url":"https://api.github.com/repos/code-mancers/rbkit-client/milestones/3","html_url":"https://github.com/code-mancers/rbkit-client/milestones/v0.3.0%20CPU%20profiling","labels_url":"https://api.github.com/repos/code-mancers/rbkit-client/milestones/3/labels","id":947276,"number":3,"title":"v0.3.0 CPU profiling","description":"This release will tighten and improve memory profiling and implement cpu profiling","creator":{"login":"gnufied","id":278,"avatar_url":"https://avatars.githubusercontent.com/u/278?v=3","gravatar_id":"","url":"https://api.github.com/users/gnufied","html_url":"https://github.com/gnufied","followers_url":"https://api.github.com/users/gnufied/followers","following_url":"https://api.github.com/users/gnufied/following{/other_user}","gists_url":"https://api.github.com/users/gnufied/gists{/gist_id}","starred_url":"https://api.github.com/users/gnufied/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnufied/subscriptions","organizations_url":"https://api.github.com/users/gnufied/orgs","repos_url":"https://api.github.com/users/gnufied/repos","events_url":"https://api.github.com/users/gnufied/events{/privacy}","received_events_url":"https://api.github.com/users/gnufied/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":9,"state":"open","created_at":"2015-01-22T18:38:49Z","updated_at":"2015-07-24T06:15:05Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/code-mancers/rbkit-client/pulls/190/commits","review_comments_url":"https://api.github.com/repos/code-mancers/rbkit-client/pulls/190/comments","review_comment_url":"https://api.github.com/repos/code-mancers/rbkit-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-mancers/rbkit-client/issues/190/comments","statuses_url":"https://api.github.com/repos/code-mancers/rbkit-client/statuses/2ce57fc554b27c198cb62b2011c64d2ffc36de53","head":{"label":"code-mancers:cpuprof-conventions","ref":"cpuprof-conventions","sha":"2ce57fc554b27c198cb62b2011c64d2ffc36de53","user":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"repo":{"id":18606462,"name":"rbkit-client","full_name":"code-mancers/rbkit-client","owner":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-mancers/rbkit-client","description":"Rbkit Desktop application","fork":false,"url":"https://api.github.com/repos/code-mancers/rbkit-client","forks_url":"https://api.github.com/repos/code-mancers/rbkit-client/forks","keys_url":"https://api.github.com/repos/code-mancers/rbkit-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-mancers/rbkit-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-mancers/rbkit-client/teams","hooks_url":"https://api.github.com/repos/code-mancers/rbkit-client/hooks","issue_events_url":"https://api.github.com/repos/code-mancers/rbkit-client/issues/events{/number}","events_url":"https://api.github.com/repos/code-mancers/rbkit-client/events","assignees_url":"https://api.github.com/repos/code-mancers/rbkit-client/assignees{/user}","branches_url":"https://api.github.com/repos/code-mancers/rbkit-client/branches{/branch}","tags_url":"https://api.github.com/repos/code-mancers/rbkit-client/tags","blobs_url":"https://api.github.com/repos/code-mancers/rbkit-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-mancers/rbkit-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-mancers/rbkit-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-mancers/rbkit-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-mancers/rbkit-client/statuses/{sha}","languages_url":"https://api.github.com/repos/code-mancers/rbkit-client/languages","stargazers_url":"https://api.github.com/repos/code-mancers/rbkit-client/stargazers","contributors_url":"https://api.github.com/repos/code-mancers/rbkit-client/contributors","subscribers_url":"https://api.github.com/repos/code-mancers/rbkit-client/subscribers","subscription_url":"https://api.github.com/repos/code-mancers/rbkit-client/subscription","commits_url":"https://api.github.com/repos/code-mancers/rbkit-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-mancers/rbkit-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-mancers/rbkit-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-mancers/rbkit-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-mancers/rbkit-client/contents/{+path}","compare_url":"https://api.github.com/repos/code-mancers/rbkit-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-mancers/rbkit-client/merges","archive_url":"https://api.github.com/repos/code-mancers/rbkit-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-mancers/rbkit-client/downloads","issues_url":"https://api.github.com/repos/code-mancers/rbkit-client/issues{/number}","pulls_url":"https://api.github.com/repos/code-mancers/rbkit-client/pulls{/number}","milestones_url":"https://api.github.com/repos/code-mancers/rbkit-client/milestones{/number}","notifications_url":"https://api.github.com/repos/code-mancers/rbkit-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-mancers/rbkit-client/labels{/name}","releases_url":"https://api.github.com/repos/code-mancers/rbkit-client/releases{/id}","created_at":"2014-04-09T17:32:48Z","updated_at":"2015-07-23T13:07:35Z","pushed_at":"2015-07-24T06:15:06Z","git_url":"git://github.com/code-mancers/rbkit-client.git","ssh_url":"git@github.com:code-mancers/rbkit-client.git","clone_url":"https://github.com/code-mancers/rbkit-client.git","svn_url":"https://github.com/code-mancers/rbkit-client","homepage":"http://rbkit.codemancers.com","size":19035,"stargazers_count":19,"watchers_count":19,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":36,"forks":2,"open_issues":36,"watchers":19,"default_branch":"master"}},"base":{"label":"code-mancers:master","ref":"master","sha":"647e005a375c5b85e9b07cdd0abc1888f90abfaf","user":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"repo":{"id":18606462,"name":"rbkit-client","full_name":"code-mancers/rbkit-client","owner":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-mancers/rbkit-client","description":"Rbkit Desktop application","fork":false,"url":"https://api.github.com/repos/code-mancers/rbkit-client","forks_url":"https://api.github.com/repos/code-mancers/rbkit-client/forks","keys_url":"https://api.github.com/repos/code-mancers/rbkit-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-mancers/rbkit-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-mancers/rbkit-client/teams","hooks_url":"https://api.github.com/repos/code-mancers/rbkit-client/hooks","issue_events_url":"https://api.github.com/repos/code-mancers/rbkit-client/issues/events{/number}","events_url":"https://api.github.com/repos/code-mancers/rbkit-client/events","assignees_url":"https://api.github.com/repos/code-mancers/rbkit-client/assignees{/user}","branches_url":"https://api.github.com/repos/code-mancers/rbkit-client/branches{/branch}","tags_url":"https://api.github.com/repos/code-mancers/rbkit-client/tags","blobs_url":"https://api.github.com/repos/code-mancers/rbkit-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-mancers/rbkit-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-mancers/rbkit-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-mancers/rbkit-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-mancers/rbkit-client/statuses/{sha}","languages_url":"https://api.github.com/repos/code-mancers/rbkit-client/languages","stargazers_url":"https://api.github.com/repos/code-mancers/rbkit-client/stargazers","contributors_url":"https://api.github.com/repos/code-mancers/rbkit-client/contributors","subscribers_url":"https://api.github.com/repos/code-mancers/rbkit-client/subscribers","subscription_url":"https://api.github.com/repos/code-mancers/rbkit-client/subscription","commits_url":"https://api.github.com/repos/code-mancers/rbkit-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-mancers/rbkit-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-mancers/rbkit-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-mancers/rbkit-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-mancers/rbkit-client/contents/{+path}","compare_url":"https://api.github.com/repos/code-mancers/rbkit-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-mancers/rbkit-client/merges","archive_url":"https://api.github.com/repos/code-mancers/rbkit-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-mancers/rbkit-client/downloads","issues_url":"https://api.github.com/repos/code-mancers/rbkit-client/issues{/number}","pulls_url":"https://api.github.com/repos/code-mancers/rbkit-client/pulls{/number}","milestones_url":"https://api.github.com/repos/code-mancers/rbkit-client/milestones{/number}","notifications_url":"https://api.github.com/repos/code-mancers/rbkit-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-mancers/rbkit-client/labels{/name}","releases_url":"https://api.github.com/repos/code-mancers/rbkit-client/releases{/id}","created_at":"2014-04-09T17:32:48Z","updated_at":"2015-07-23T13:07:35Z","pushed_at":"2015-07-24T06:15:06Z","git_url":"git://github.com/code-mancers/rbkit-client.git","ssh_url":"git@github.com:code-mancers/rbkit-client.git","clone_url":"https://github.com/code-mancers/rbkit-client.git","svn_url":"https://github.com/code-mancers/rbkit-client","homepage":"http://rbkit.codemancers.com","size":19035,"stargazers_count":19,"watchers_count":19,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":36,"forks":2,"open_issues":36,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/code-mancers/rbkit-client/pulls/190"},"html":{"href":"https://github.com/code-mancers/rbkit-client/pull/190"},"issue":{"href":"https://api.github.com/repos/code-mancers/rbkit-client/issues/190"},"comments":{"href":"https://api.github.com/repos/code-mancers/rbkit-client/issues/190/comments"},"review_comments":{"href":"https://api.github.com/repos/code-mancers/rbkit-client/pulls/190/comments"},"review_comment":{"href":"https://api.github.com/repos/code-mancers/rbkit-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-mancers/rbkit-client/pulls/190/commits"},"statuses":{"href":"https://api.github.com/repos/code-mancers/rbkit-client/statuses/2ce57fc554b27c198cb62b2011c64d2ffc36de53"}}}}