DEV Community

Cover image for How Can You Monitor Specific Functions More Precisely in Complex Game Projects?
GameOptim
GameOptim

Posted on

How Can You Monitor Specific Functions More Precisely in Complex Game Projects?

Introduction

GameOptim's existing function module classification provides a straightforward and efficient way to locate or monitor performance issues. However, this approach may not provide enough granularity for some large or complex projects.

For example, when a new gameplay feature is introduced during development, developers may need to monitor a specific set of functions related to that feature. This creates a need for more detailed function classification.

The latest version of GameOptim introduces Custom Function Groups, allowing developers to classify functions in a more precise and personalized way.

💡 New users can get 2 hours of free GOT Online testing time after completing registration.

Summary

  • GameOptim's existing function module classification provides a simple way to locate and monitor performance issues.
  • Large or complex projects may require more granular function classification for targeted monitoring.
  • Custom Function Groups allow developers to create more precise and personalized function categories.
  • A custom function group can contain up to 15 functions.
  • Once configured, function groups are automatically applied to all reports within the same project.
  • Developers can view total time, self time, function count, and the function group's share of total CPU time.

Why Do Complex Projects Need More Granular Function Monitoring?

Predefined function module classifications provide a quick way to locate and monitor performance issues.

However, they may not be sufficiently granular for some large or complex projects.

For example, when a new gameplay feature is added during development, developers may want to monitor only the functions related to that feature. In this situation, a more detailed classification of functions can make targeted monitoring possible.

This is the purpose of Custom Function Groups: to allow developers to define function groups based on their specific monitoring needs.

How Can You Create a Custom Function Group?

Project administrators can create, edit, or delete function groups based on their requirements.

After a function group is configured, it is automatically applied to all reports within the same project. Developers therefore do not need to configure the same function group repeatedly for individual reports.

How Do You Select Functions for a Custom Function Group?

On the Custom Function Group editing page, GameOptim can list up to 4,000 functions with the highest total time in the current report.

The list provides two metrics for reference:

  • Average Total Time
  • Average Self Time

A custom function group can contain up to 15 functions.

Developers can select functions directly from the list or use the search function to locate a specific target function.

What Performance Data Can You See After Saving a Function Group?

After saving a function group, developers can view the following information in the function group list:

  • Average Total Time
  • Average Self Time
  • Function Count
  • Function Group / Total CPU Time Percentage

The performance chart also shows the total time of each function group, allowing developers to view the total execution time of different groups.

How Can You Inspect the Functions Within a Group?

Developers can click the Details button in the function group list to view information about the individual functions within a group.

The display rules for these individual functions are consistent with those used for the function group itself, allowing developers to examine the relevant performance data at the function level.

What Is the Practical Workflow?

A typical workflow for using Custom Function Groups is:

  1. Identify the functions that require targeted monitoring.
  2. Open the Custom Function Group editing page.
  3. Review the functions listed from the current report.
  4. Select up to 15 functions or locate specific functions through search.
  5. Save the function group.
  6. Monitor the group's performance data across reports within the project.
  7. Open the group details when individual function information is needed.

Key Takeaways

  • Existing function module classification provides a straightforward way to locate and monitor performance issues.
  • More granular function classification can be useful when complex projects require targeted monitoring of specific gameplay features.
  • Custom Function Groups allow developers to create personalized function classifications.
  • Each function group can contain up to 15 functions.
  • Up to 4,000 functions ranked by total time can be listed on the editing page for the current report.
  • Once configured, a function group is automatically applied to all reports within the same project.
  • Developers can analyze both group-level and individual-function performance data.

FAQ

When is a Custom Function Group useful?

It can be useful when developers need to monitor a specific set of functions, such as functions associated with a newly added gameplay feature, rather than relying only on broader function module classifications.

How many functions can one Custom Function Group contain?

A custom function group can contain up to 15 functions.

Do I need to configure the function group for every report?

No. Once configured, the function group is automatically applied to all reports within the same project.

How many functions can be displayed when editing a group?

The editing page can list up to 4,000 functions ranked by total time in the current report.

What information is available for a function group?

The function group list displays Average Total Time, Average Self Time, Function Count, and Function Group / Total CPU Time Percentage. The performance chart also shows the total time of each function group.

Top comments (0)