{"action":"created","issue":{"url":"https://api.github.com/repos/vpelletier/pprofile/issues/2","labels_url":"https://api.github.com/repos/vpelletier/pprofile/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/vpelletier/pprofile/issues/2/comments","events_url":"https://api.github.com/repos/vpelletier/pprofile/issues/2/events","html_url":"https://github.com/vpelletier/pprofile/pull/2","id":69586633,"number":2,"title":"Make usable on IronPython under Windows","user":{"login":"pilcru","id":2668286,"avatar_url":"https://avatars.githubusercontent.com/u/2668286?v=3","gravatar_id":"","url":"https://api.github.com/users/pilcru","html_url":"https://github.com/pilcru","followers_url":"https://api.github.com/users/pilcru/followers","following_url":"https://api.github.com/users/pilcru/following{/other_user}","gists_url":"https://api.github.com/users/pilcru/gists{/gist_id}","starred_url":"https://api.github.com/users/pilcru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pilcru/subscriptions","organizations_url":"https://api.github.com/users/pilcru/orgs","repos_url":"https://api.github.com/users/pilcru/repos","events_url":"https://api.github.com/users/pilcru/events{/privacy}","received_events_url":"https://api.github.com/users/pilcru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-20T13:26:15Z","updated_at":"2015-04-28T06:13:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vpelletier/pprofile/pulls/2","html_url":"https://github.com/vpelletier/pprofile/pull/2","diff_url":"https://github.com/vpelletier/pprofile/pull/2.diff","patch_url":"https://github.com/vpelletier/pprofile/pull/2.patch"},"body":"Hi Vincent,\r\n\r\nHere are 2 independent commits that should get your profiler working on a wider range of cases (specifically IronPython on Windows).\r\n\r\nFirst one (@91f9238) removes the need for the inspect.currentframe() method that is not implemented in IronPython.\r\nSecond one (@bc1c4df) uses forward slashes as path separators everywhere in order to be compatible with the qCacheGrind windows build from http://sourceforge.net/projects/qcachegrindwin/.\r\n\r\nSorry to dig up old code, but since we have made valuable use of your tools after those small changes I thought I should let others profit. We (have to) use IronPython on windows to write Python plugins for the 3D-modeling software Rhino3D. pprofile was the only detailed and GUI-compatible profiler we found for IronPython that (almost) working.\r\n\r\nBest,\r\nPierre"},"comment":{"url":"https://api.github.com/repos/vpelletier/pprofile/issues/comments/96936719","html_url":"https://github.com/vpelletier/pprofile/pull/2#issuecomment-96936719","issue_url":"https://api.github.com/repos/vpelletier/pprofile/issues/2","id":96936719,"user":{"login":"vpelletier","id":191204,"avatar_url":"https://avatars.githubusercontent.com/u/191204?v=3","gravatar_id":"","url":"https://api.github.com/users/vpelletier","html_url":"https://github.com/vpelletier","followers_url":"https://api.github.com/users/vpelletier/followers","following_url":"https://api.github.com/users/vpelletier/following{/other_user}","gists_url":"https://api.github.com/users/vpelletier/gists{/gist_id}","starred_url":"https://api.github.com/users/vpelletier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpelletier/subscriptions","organizations_url":"https://api.github.com/users/vpelletier/orgs","repos_url":"https://api.github.com/users/vpelletier/repos","events_url":"https://api.github.com/users/vpelletier/events{/privacy}","received_events_url":"https://api.github.com/users/vpelletier/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T06:13:29Z","updated_at":"2015-04-28T06:13:29Z","body":"> File paths are written with the last separator being a forward slash\r\n\r\nOops, I forgot this behaviour of `os.path.split`. Indeed, `x.split(os.path.sep)` would be more appropriate. Sorry for not checking this."}}