#include "pxr/pxr.h"
#include "pxr/base/tf/callContext.h"
#include "pxr/base/tf/stringUtils.h"
#include "pxr/base/tf/api.h"
#include <optional>
#include <vector>
#include <string>
 
Go to the source code of this file.
      
        
          | #define TF_DESCRIBE_SCOPE | 
          ( | 
            | 
          ... | ) | 
           | 
        
      
 
Convenience macro for annotating the current scope with a description. This macro accepts either a single string, or printf-style arguments and creates a scope description local variable with the resulting string. 
Definition at line 136 of file scopeDescription.h.
 
 
template<typename... Args> 
  
  
      
        
          | std::string Tf_DescribeScopeFormat  | 
          ( | 
          const char *  | 
          fmt,  | 
         
        
           | 
           | 
          Args &&...  | 
          args  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | const char* Tf_DescribeScopeFormat  | 
          ( | 
          const char *  | 
          fmt | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | std::string&& Tf_DescribeScopeFormat  | 
          ( | 
          std::string &&  | 
          fmt | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | const std::string& Tf_DescribeScopeFormat  | 
          ( | 
          const std::string &  | 
          fmt | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
      
        
          | TF_API std::vector<std::string> TfGetCurrentScopeDescriptionStack  | 
          ( | 
           | ) | 
           | 
        
      
 
Return a copy of the current description stack for the "main" thread as identified by ArchGetMainThreadId() as a vector of strings. The most recently pushed description is at back(), and the least recently pushed description is at front(). 
 
 
      
        
          | TF_API std::vector<std::string> TfGetThisThreadScopeDescriptionStack  | 
          ( | 
           | ) | 
           | 
        
      
 
Return a copy of the current description stack for the current thread of execution as a vector of strings. The most recently pushed description is at back(), and the least recently pushed description is at front().