{"id":18546453,"url":"https://github.com/adroll/troll","last_synced_at":"2025-05-15T07:08:40.803Z","repository":{"id":198774283,"uuid":"701516506","full_name":"AdRoll/troll","owner":"AdRoll","description":"Erlang selective tracking","archived":false,"fork":false,"pushed_at":"2023-10-06T23:10:47.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-02-17T09:32:59.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdRoll.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-06T20:08:03.000Z","updated_at":"2023-10-06T20:10:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"f92c736b-458b-46df-8e4a-e1a34b61456a","html_url":"https://github.com/AdRoll/troll","commit_stats":null,"previous_names":["adroll/troll"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdRoll%2Ftroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdRoll%2Ftroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdRoll%2Ftroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdRoll%2Ftroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdRoll","download_url":"https://codeload.github.com/AdRoll/troll/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254292042,"owners_count":22046426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T20:25:23.568Z","updated_at":"2025-05-15T07:08:35.789Z","avatar_url":"https://github.com/AdRoll.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"troll\n=====\n\nA set of erlang debugging/tracing tools.\n\n * troll:  convenience wrappers for dbg, allowing simple tracing of functions/modules.\n * troll_retro: \"Retroactive\" tracing:\n   * Capture calls beginning when a certain condition is met.\n   * Print captured trace when another condition obtains.\n\nBuild\n-----\n\n    $ rebar3 compile\n\nUsing\n-----\n\n(These examples are out-of-date)\n\n```\n1\u003e TF = fun({trace,_,call,{M=lists,F=seq,A=[1,_]}}, _) -\u003e\n             start_trace;\n           ({trace,_,call,{M=lists,F=seq,A=[2,_]}}, _) -\u003e\n             print_trace;\n           ({trace,_,call,{M=lists,F=seq,A=[3,_]}}, _) -\u003e\n             end_trace;\n           ({trace,_,call,{M,F,A}}, _) -\u003e\n             end_trace;\n           (_,_) -\u003e\n             none\n        end.\n#Fun\u003cerl_eval.43.65746770\u003e\n\n2\u003e troll_retro:start([{lists,seq}],[{some_key,{TF,undefined}}]).\n{ok,\u003c0.151.0\u003e}\n\n3\u003e lists:seq(1,2).\n[1,2]\n\n4\u003e lists:seq(2,3).\n[\u003c0.140.0\u003e] call   lists:seq(2, 3)\n[\u003c0.140.0\u003e] return lists:seq(…) -\u003e [1,2]\n[\u003c0.140.0\u003e] call   lists:seq(1, 2)\n[2,3]\n\n5\u003e lists:seq(3,4).\n[\u003c0.140.0\u003e] call   lists:seq(3, 4)\n[\u003c0.140.0\u003e] return lists:seq(…) -\u003e [2,3]\n[3,4]\n\n6\u003e lists:seq(3,4).\n[3,4]\n\n7\u003e lists:seq(2,4).\n[2,3,4]\n```\n\nTODO:\n=====\n\n* More overload protection, checking message queues of troll_retro gen_server and tracer (perhaps a separate monitoring process?)\n* Shut down tracer when no active triggers.\n  * undo dbg:tpl\n* Performance improvements for shell funs:\n  * Detect if supplied fun is an erl_eval fun\n  * Try fun2ms\n  * Try compiling to dynamic module\n  * Warn or require a 'force' option to use shell funs that can't be compiled somehow\n* Docs docs docs!\n* Manually stop debugging\n* Message send/receive functionality (tie together trace to sending/receiving process)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadroll%2Ftroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadroll%2Ftroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadroll%2Ftroll/lists"}