is there any tools to analysize OCC codes?

easternbun

CAD practitioner
I am trying to study the OCC code and wonder if there are tools or Visual studio plugins that could help me analysize code. Such as its structure, its functionals etc.
 
Last edited:

blobfish

CAD community veteran
Great question! I wish I had an answer and would love to hear other opinions.

dynamic dispatch obfuscates IDE static analysis tools ... At least my IDE. So I worked on a dynamic call graph generation project where I:
- made a custom build of occ turning off the compiler wizardry, so no inline
- ran test program linked to custom occ through callgrind
- parsed callgrind results and constructed an OpenSceneGraph scene.
I have put quite a bit of time into it, but it is still cumbersome and not useful. I have yet to come up with a good way to separate the signal from the noise.
 

easternbun

CAD practitioner
Great question! I wish I had an answer and would love to hear other opinions.

dynamic dispatch obfuscates IDE static analysis tools ... At least my IDE. So I worked on a dynamic call graph generation project where I:
- made a custom build of occ turning off the compiler wizardry, so no inline
- ran test program linked to custom occ through callgrind
- parsed callgrind results and constructed an OpenSceneGraph scene.
I have put quite a bit of time into it, but it is still cumbersome and not useful. I have yet to come up with a good way to separate the signal from the noise.
cool, it would be great to see your final work.
Not sure I clearly got your point, but why not just use Visual Studio for that?
yes, I am using VS for this. I guess it is just me not too familiar with it. I am using VS's Architecture Layer Diagram, but it seems to not work in what I would have hoped for. What kinds of tools do you use in VS if not mind I asking?
 
Top