.. _stdlib_profiler: ======== Profiler ======== The profiler is a tool that allows you to measure the performance of your Daslang scripts. It can be used to identify bottlenecks and optimize your code. EdenSpark supports integration with the daProfiler tool. daProfiler is a standalone application that can be used to profile Daslang scripts. It can be downloaded from the following link: https://github.com/GaijinEntertainment/daProfiler/releases +++++++++++ Integration +++++++++++ - Add the line ``require engine.runtime.das_profiler`` to your main script - Start the game with the command-line argument `-config:debug/daProfilerAutoStart:b=yes` +++++ Usage +++++ - Download daProfiler - Integrate the profiler into your Daslang script - Open daProfiler and look for functions. All Daslang functions start with the "das:" prefix .. image:: ../_static/images/profiler/profiler_functions.png :alt: Functions You may use the ``Show Source Code`` button to open the ``*.das`` file directly in daProfiler. .. image:: ../_static/images/profiler/profiler_source_1.png :alt: Show Source Code .. image:: ../_static/images/profiler/profiler_source_2.png :alt: Source Code