AppOnChip (.NET) - Performance Profiling

Sentinel LDK Envelope examines all the functions that are compatible with AppOnChip protection and uses heuristics to determine a selection that attempts to balance security and performance.

To fine-tune the list of functions that should be selected for AppOnChip protection, you can protect your application for Performance Profiling. This mode helps you determine the impact on performance for the list of functions that you select to be protected using AppOnChip.

How to Use Performance Profiling with AppOnChip

1.Perform your initial review of the functions that are selected to be protected using AppOnChip.

2.Click Inject profiling code (lower right corner of the page). Your application is protected with Performance Profiling enabled.

3.In the Protection Status dialog box, click Start protected program (or click Close if you want to execute the application later). Operate the protected application in a manner that is representative of the way you expect your customers to use it. During this time, information for Performance Profiling analysis is accumulated.

NOTE   The first time that an eligible code fragment is executed, a message appears to notify you that performance profiling is in use.

4.When you close your application, the accumulated information is written to the Performance Profiling log file.

The log file is placed in the output folder <name_of_program_file>.profile.

5. On the AppOnChip tab, select Refresh. The information in the Performance Profiling log file is used by Envelope to modify the selection of functions to be protected using AppOnChip.

6.Click Protect to create the production version of your protected application.

Performance Profiling Process

When you select Profile Performance for your application, your application is equipped with a facility that, at runtime, will collect information regarding the usage of code fragments that are eligible for AppOnChip protection. During execution of the modified application, the application accumulates information regarding the eligible code fragments of each function. To obtain data that provides a realistic analysis, you should operate the application in a manner that is representative of the way you expect your customers to use it.

When you exit from the application, the accumulated usage information is saved to the Performance Profiling log file. This file must be placed in the same directory as the protected application. For each function, the file contains the number of times that an eligible code fragment was executed.

You can examine this information and determine if you want to add functions or remove functions from the list.

NOTE   An application with Performance Profiling mode enabled should be used for analysis only. The application is not intended for distribution.

After you have finalized the list of functions to protect using AppOnChip, re-protect your application to create the production version of your protected application.

Related Topics

Protecting With AppOnChip

.NET