GetCurrentDriver() ?

BlitzMax Forums/BlitzMax Programming/GetCurrentDriver() ?

DrawText is global as long as people don't break with Max2D.

But if you do a profiler, are you even supporting DX?
If not, then the GLDrawtext function should be enough as it will work in manually initialized GL windows as well as Graphics with GL driver