Tuto WEBDEV 25
358 Part 10: Optimizing and debugging a project Cleaning the project Our project contains several unused files. You have the ability to clean the project in order to keep the necessary elements only. The client setup is not weighted with images, external files, ... not used. ▶ To fix this problem: 1. Click the [...] button to get more details. 2. The project cleanup wizard starts. This wizard indicates the unused files that can be deleted. 3. Go to the next step. 4. Select the type of cleanup to perform. You can: • create a zip file with the useless files. • move the useless files into a specific directory. 5. Validate the option proposed by default and go to the next step. 6. Finish the wizard. ▶ Our project was optimized according to the tips given by the static audit. The static audit is used to get an overall status on the source code of your project. Our advice: run it on a regular basis! Let’s see what happens at run time by starting the dynamic audit. Dynamic audit The dynamic audit is used to study the application execution. The audit is used to detect problems such as: • Excessive memory consumption, • Slowness of algorithms used, • Errors "hidden" at run time, • ... A dynamic audit can be performed in a test environment or on a live application. The "WW_Optimization" project contains a specific page triggering errors that can be detected by the dynamic audit. The dynamic audit and the project test will be started at the same time. ▶ To start the dynamic audit on the "WW_Optimization" project: 1. In the ribbon, on the "Project" pane, in the "Test mode" group, expand "Test mode" and select "Debug the project while the audit is enabled". The project test is run.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==