{"id":19874532,"url":"https://github.com/strongloop/profiler-demo-app","last_synced_at":"2025-07-30T23:14:58.690Z","repository":{"id":20440075,"uuid":"23716906","full_name":"strongloop/profiler-demo-app","owner":"strongloop","description":"Demo app to showcase CPU and heap profiling.","archived":false,"fork":false,"pushed_at":"2018-09-19T03:20:06.000Z","size":18,"stargazers_count":3,"open_issues_count":7,"forks_count":2,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-05-02T10:51:01.851Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://strongloop.com/node-js/devops-tools/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strongloop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-05T20:12:51.000Z","updated_at":"2018-02-19T09:40:25.000Z","dependencies_parsed_at":"2022-07-31T19:48:14.646Z","dependency_job_id":null,"html_url":"https://github.com/strongloop/profiler-demo-app","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/strongloop/profiler-demo-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fprofiler-demo-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fprofiler-demo-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fprofiler-demo-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fprofiler-demo-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strongloop","download_url":"https://codeload.github.com/strongloop/profiler-demo-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fprofiler-demo-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267960224,"owners_count":24172490,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12T16:23:54.921Z","updated_at":"2025-07-30T23:14:58.618Z","avatar_url":"https://github.com/strongloop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"=================\nprofiler-demo-app\n=================\n\nUse this demo app to showcase CPU and Heap profiling using StrongOps \nhosted service or On-premises monitoring. \nThe profiler demo app is a simple loopback application. \nIt includes a load generator script which makes 2 post requests. \nThe first POST request '/documents' creates multiple instances of the \ndocument object and burns CPU. Use the CPU profiler to see the CPU usage. \nThe second POST request '/documents/content' increases the 'Document' \ncount. Use the HEAP Profiler to see the increased object count.  \n\n#### Install StrongLoop software\n\n    $ npm install -g strongloop\n\n#### Install node_modules\n\n    $ npm install\n\n#### On-premises monitoring\n\nRun the app.\n\n    $ slc run --cluster 2\n\n    \nRun the load generator script. Update the host and port in loadtest.js. \n\n    $ node loadtest.js\n    \nYou can collect CPU and Heap profiling data using the slc runctl \ncommand and Google Chrome tools. \nSee [slc runctl](http://docs.strongloop.com/display/SLC/slc+runctl) for more details.\n\n##### CPU Profiler\n\nClick on the CPU Profiler tab. Select the app named profiler-app and \nstart the profiler. Run it for around 6-10 seconds and you should be able \nto see the CPU profiler chart. This will slow down the \nCPU usage. \nSee [CPU Profiling](http://docs.strongloop.com/display/SLA/CPU+profiling) \nfor more details on CPU profiling.\n\n##### Heap Profiler \n\nClick on the Heap Profiler tab. Select the app named profiler-app and \nstart the profiler. Leave it running for a while and you should be able \nto see the object count increasing.\nSee [Heap](http://docs.strongloop.com/display/SLA/Heap+memory+profiling)\nMemory Profiling for more details on heap  profiling data.\n\nNote: Do not leave the app running for too long. Kill the app, once you \ngenerate the graphs. The app is meant to leak objects and consumes a lot of CPU.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Fprofiler-demo-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrongloop%2Fprofiler-demo-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Fprofiler-demo-app/lists"}