{"action":"created","issue":{"url":"https://api.github.com/repos/yangluoshen/memcheck/issues/1","repository_url":"https://api.github.com/repos/yangluoshen/memcheck","labels_url":"https://api.github.com/repos/yangluoshen/memcheck/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/yangluoshen/memcheck/issues/1/comments","events_url":"https://api.github.com/repos/yangluoshen/memcheck/issues/1/events","html_url":"https://github.com/yangluoshen/memcheck/issues/1","id":173789990,"number":1,"title":"打印调用栈的问题","user":{"login":"yangluoshen","id":5471004,"avatar_url":"https://avatars.githubusercontent.com/u/5471004?v=3","gravatar_id":"","url":"https://api.github.com/users/yangluoshen","html_url":"https://github.com/yangluoshen","followers_url":"https://api.github.com/users/yangluoshen/followers","following_url":"https://api.github.com/users/yangluoshen/following{/other_user}","gists_url":"https://api.github.com/users/yangluoshen/gists{/gist_id}","starred_url":"https://api.github.com/users/yangluoshen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangluoshen/subscriptions","organizations_url":"https://api.github.com/users/yangluoshen/orgs","repos_url":"https://api.github.com/users/yangluoshen/repos","events_url":"https://api.github.com/users/yangluoshen/events{/privacy}","received_events_url":"https://api.github.com/users/yangluoshen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-29T14:38:34Z","updated_at":"2016-08-30T11:16:06Z","closed_at":null,"body":"- 使用backtrace()十分消耗性能，CPU一下彪得老高，不允许该策略。\r\n- 方案一：放弃backtrace，自己写一个backtrace\r\n- 方案二：优化malloc的时候获取调用栈的性能。\r\n- 方案三：。。。"},"comment":{"url":"https://api.github.com/repos/yangluoshen/memcheck/issues/comments/243407928","html_url":"https://github.com/yangluoshen/memcheck/issues/1#issuecomment-243407928","issue_url":"https://api.github.com/repos/yangluoshen/memcheck/issues/1","id":243407928,"user":{"login":"yangluoshen","id":5471004,"avatar_url":"https://avatars.githubusercontent.com/u/5471004?v=3","gravatar_id":"","url":"https://api.github.com/users/yangluoshen","html_url":"https://github.com/yangluoshen","followers_url":"https://api.github.com/users/yangluoshen/followers","following_url":"https://api.github.com/users/yangluoshen/following{/other_user}","gists_url":"https://api.github.com/users/yangluoshen/gists{/gist_id}","starred_url":"https://api.github.com/users/yangluoshen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangluoshen/subscriptions","organizations_url":"https://api.github.com/users/yangluoshen/orgs","repos_url":"https://api.github.com/users/yangluoshen/repos","events_url":"https://api.github.com/users/yangluoshen/events{/privacy}","received_events_url":"https://api.github.com/users/yangluoshen/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T11:16:06Z","updated_at":"2016-08-30T11:16:06Z","body":"一种可作为保留的方案：\r\n即采用__builtin_return_address + dladdr + -rdynamic -ldl的方式，可以比较优雅得打印调用栈，问题是-rdynamic实在是耗性能，或是有不明的原因导致进程启动不了。\r\n\r\nbacktrace() 虽然使用简单，但是还要解析，略显麻烦，暂不考虑。"}}
{"actor":{"display_login":"yangluoshen"}}