How to get subcategories for profiling using the HDK

   216   1   0
User Avatar
Member
21 posts
Joined: Aug. 2020
Offline
I'm working on a DOP solver node using the HDK, and wondering how to get subcategories for profiling data in Houdini.

For example, the Bullet Solver has these subcategories:



UT_PerfMonAutoSolveEvent doesn't seem to have any arguments for this, and UT_Performance isn't DOP specific so it doesn't come up in the right menu.

UT_PerfMonAutoSolveEvent perf(this, "How do I get subcategories for this");
Edited by Hallam Roberts - Nov. 17, 2026 06:11:24

Attachments:
Enter_a_filename.png (136.6 KB)

User Avatar
Member
78 posts
Joined: March 2024
Offline
  667     /// Start a event.  
  668     /// Subclasses must call this method when starting their own events.
  669     int                      startEvent_(
  670                                 const UT_StringHolder &event,
  671                                 const UT_StringHolder &object,
  672                                 bool auto_nest_events,
  673                                 UT_PerfMonCategory category,
  674                                 UT_PerfMonEventType type,
  675                                 UT_PerfMonObjectType object_type,
  676                                 const UT_StringHolder &object_icon,
  677                                 int *frame_num=NULL,
  678                                 const UT_StringHolder &extra_info = UT_StringHolder::theEmptyString);
Try this, from the UT_Performance class itself, i haven't tried it yet, i have recently switched to linux and have to setup the build environment, but i guess you have to set true to auto_nest_events, and it will start nesting the events based on time of call and scope, you will also find solve category in the perf mon category enum.
Edited by Umang_Raj - Nov. 17, 2026 21:34:13
  • Quick Links