{"id":20744262,"url":"https://github.com/mathjax/mathjax-profiler","last_synced_at":"2025-07-04T03:38:28.719Z","repository":{"id":16851739,"uuid":"19611631","full_name":"mathjax/MathJax-profiler","owner":"mathjax","description":"A JavaScript tool to profile MathJax rendering, in particular rendering speed and errors.","archived":false,"fork":false,"pushed_at":"2015-09-20T16:39:58.000Z","size":212,"stargazers_count":2,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-24T05:44:57.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/mathjax.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}},"created_at":"2014-05-09T13:15:55.000Z","updated_at":"2018-08-07T11:22:50.000Z","dependencies_parsed_at":"2022-07-26T11:02:09.200Z","dependency_job_id":null,"html_url":"https://github.com/mathjax/MathJax-profiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathjax%2FMathJax-profiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathjax%2FMathJax-profiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathjax%2FMathJax-profiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathjax%2FMathJax-profiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathjax","download_url":"https://codeload.github.com/mathjax/MathJax-profiler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250573299,"owners_count":21452342,"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-17T07:14:51.452Z","updated_at":"2025-04-24T05:45:02.830Z","avatar_url":"https://github.com/mathjax.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MathJax-profiler\n\n\nThis repository contains the MathJax profiler and a sample \nHTML file visually rendering the profiling data.\n\n* `MathJax-Profiler.js`: the profiler\n* `test/Performance-Test.html`, `test/performance.js`: example for visualizing profiler data\n \nSee the comments in `MathJax-Profiler.js` for how to send \nthe data collected on the client back to your server.\n\n# Example using Google Analytics\n\nGoogle Analytics can collect [custom user timings](https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingTiming). The profiler can easily be set up to provide the necessary data. Simply load it after GA and before MathJax.js and specify which data to include.\n\nFor a simple example, a `Data_Saver` function as below will collect 3 basic timings:\n\n* loading of MathJax.js\n* Overall timing -- loading up of components as well as typesetting. (\"Startup\")\n* just typesetting (\"Typeset\")\n\nTo add more timings, you simply pick more values from the `events` object.\n\n```javascript\nfunction Data_Saver() {\n    for (var b = MathJax.Extension.Profiler, c = b.events, d = 0, e = c.length; e \u003e d; d++) {\n        var f = c[d].n, //name\n            g = c[d].s, //start time\n            h = c[d].e; //end time\n        if (\"Startup\" === f) {\n            var i = h - g;\n            _gaq.push([\"_trackTiming\", \"MathJax\", f, i, document.URL])\n        }\n        if (\"Typeset\" === f) {\n            var i = h - g;\n            _gaq.push([\"_trackTiming\", \"MathJax\", f, i, document.URL]), _gaq.push([\"_trackTiming\", \"MathJax\", \"Total time\", h, document.URL])\n        }\n        \"MathJax.js\" === f \u0026\u0026 _gaq.push([\"_trackTiming\", \"MathJax\", f, c[d].c, document.URL])\n    }\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathjax%2Fmathjax-profiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathjax%2Fmathjax-profiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathjax%2Fmathjax-profiler/lists"}