Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

7.2.2.1. Analyzing the Problem

The first step to accelerate your system processing is to identify the slowest task in your system. Intel provides the following tools to profile your application:

  • GNU Profiler—The Nios® II EDS toolchain includes a method for profiling your application with the GNU Profiler. This method of profiling reports how long various functions run in your application.
  • High resolution timer—The interval timer peripheral is a simple time counter that can determine the amount of time a given subroutine runs.
  • Performance counter peripheral—The performance counter unit can profile several different sections of code with a collection of counters. This peripheral includes a simple software API that enables you to print out the results of these counters through the Nios® II processor's stdio services.

Use one or more of these tools to determine the tasks in which your application is spending most of its processing time.

For more information about how to profile your software application, refer to AN391: Profiling Nios® II Systems.