diff options
Diffstat (limited to 'docs/sections')
-rw-r--r-- | docs/sections/customizing.md | 19 | ||||
-rw-r--r-- | docs/sections/deployment.md | 14 | ||||
-rw-r--r-- | docs/sections/testing_benchmarking.md | 4 |
3 files changed, 19 insertions, 18 deletions
diff --git a/docs/sections/customizing.md b/docs/sections/customizing.md index e92c327..346a34c 100644 --- a/docs/sections/customizing.md +++ b/docs/sections/customizing.md @@ -243,12 +243,14 @@ Profiler is a helper class assisting in collection of timings and Ethos-U55 cycle counts for operations. It uses platform timer to get system timing information. -| Method name | Description | -|----------------------|-----------------------------------------------------------| -| StartProfiling | Starts profiling and records the starting timing data. | -| StopProfiling | Stops profiling and records the ending timing data. | -| Reset | Resets the profiler and clears all collected data. | -| GetResultsAndReset | Gets the results as string and resets the profiler. | +| Method name | Description | +|-------------------------|----------------------------------------------------------------| +| StartProfiling | Starts profiling and records the starting timing data. | +| StopProfiling | Stops profiling and records the ending timing data. | +| StopProfilingAndReset | Stops the profiling and internally resets the platform timers. | +| Reset | Resets the profiler and clears all collected data. | +| GetAllResultsAndReset | Gets the results as string and resets the profiler. | +| SetName | Set the profiler name. | Usage example: @@ -259,7 +261,7 @@ profiler.StartProfiling(); // Code running inference to profile profiler.StopProfiling(); -info("%s\n", profiler.GetResultsAndReset().c_str()); +profiler.PrintProfilingResult(); ``` ## NN Model API @@ -571,9 +573,8 @@ Profiler profiler{&platform, "Inference"}; profiler.StartProfiling(); model.RunInference(); profiler.StopProfiling(); -std::string profileResults = profiler.GetResultsAndReset(); -info("%s\n", profileResults.c_str()); +profiler.PrintProfilingResult(); ``` ## Printing to console diff --git a/docs/sections/deployment.md b/docs/sections/deployment.md index 354d30b..3d5796f 100644 --- a/docs/sections/deployment.md +++ b/docs/sections/deployment.md @@ -267,13 +267,13 @@ off. 7. On the second serial port, output similar to section 2.2 should be visible: ```log - [INFO] Setting up system tick IRQ (for NPU) - [INFO] V2M-MPS3 revision C - [INFO] Application Note AN540, Revision B - [INFO] FPGA build 1 - [INFO] Core clock has been set to: 32000000 Hz - [INFO] CPU ID: 0x410fd220 - [INFO] CPU: Cortex-M55 r0p0 + INFO - Setting up system tick IRQ (for NPU) + INFO - V2M-MPS3 revision C + INFO - Application Note AN540, Revision B + INFO - FPGA build 1 + INFO - Core clock has been set to: 32000000 Hz + INFO - CPU ID: 0x410fd220 + INFO - CPU: Cortex-M55 r0p0 ... ``` diff --git a/docs/sections/testing_benchmarking.md b/docs/sections/testing_benchmarking.md index 43bb7f4..0c7c675 100644 --- a/docs/sections/testing_benchmarking.md +++ b/docs/sections/testing_benchmarking.md @@ -45,8 +45,8 @@ dev_ethosu_eval-<use_case>-tests ``` ```log -[INFO] native platform initialised -[INFO] ARM Ethos-U55 Evaluation application for MPS3 FPGA Prototyping Board and FastModel +INFO - native platform initialised +INFO - ARM Ethos-U55 Evaluation application for MPS3 FPGA Prototyping Board and FastModel ... =============================================================================== |