strong-arc
Version:
A visual suite for the StrongLoop API Platform
2 lines (1 loc) • 2.71 kB
JSON
{"id":"6720103","type":"page","title":"Smart profiling","body":{"view":{"value":"<p>Use Smart Profiling to start CPU profiling automatically when the Node event loop stalls. </p><p><strong>NOTE</strong>: Smart Profiling is supported only for applications (and StrongLoop PM) running on Linux.</p><p>Follow these steps:</p><ol><li>In the <strong>Hostname</strong> field, enter the name of a Linux host where StrongLoop Process Manager (PM) is running.</li><li>In the <strong>Port</strong> field, enter the port number where StrongLoop PM is listening.</li><li>Click <strong>Load</strong>.<br>Arc will display the process IDs (PIDs) of the application running in that PM.</li><li>Select the PIDs for which you want to set smart profiling.</li><li>Click <strong>Profile Settings (full)</strong>. You'll see the <strong>Profiler Settings</strong> dialog:</li><li>Click <strong>Smart</strong> to enable smart profiling.</li><li>In the <strong>Event Loop Execution Threshold</strong> field, enter the number of milliseconds after which profiling will start. If the Node event loop stalls for longer than this, then smart profiling starts automatically.</li><li>In the <strong>Max Samples</strong> field, enter the maximum number of event loop cycles during which to profile.</li><li>Click <strong>OK</strong> to close the<strong> Profiler Settings</strong> dialog and save the settings.</li><li>Click the desired PID on which to do Smart Profiling; the PID box will turn blue.</li><li>Click <strong>Start</strong> to begin Smart Profiling.<br>To end Smart Profiling, click <strong>Stop</strong>. </li></ol><p><span><strong>NOTE</strong>: StrongLoop Profiler will save CPU profiles after you set the Smart Profiling settings and click </span><strong>Start</strong><span>; and before you click</span><strong> Stop</strong><span>.</span></p><p>To disable smart profiling:</p><ol><li>Click <strong>Full</strong>.</li><li>Click <strong>OK</strong>.</li></ol><p>For more information, see <a href=\"http://docs.strongloop.com/display/SLC/Smart+profiling+with+Arc\" target=\"_new\">Smart profiling with Arc</a>.</p>","representation":"view","_expandable":{"content":"/rest/api/content/6720103"}},"_expandable":{"editor":"","export_view":"","storage":""}},"_links":{"webui":"/display/ARC/Smart+profiling","tinyui":"/x/Z4pm","collection":"/rest/api/content","base":"https://docs.strongloop.com","self":"https://docs.strongloop.com/rest/api/content/6720103"},"_expandable":{"history":"/rest/api/content/6720103/history","container":"","ancestors":"","children":"/rest/api/content/6720103/child","descendants":"/rest/api/content/6720103/descendant","space":"/rest/api/space/ARC","version":"","metadata":""}}