src/third_party/angle/src/libANGLE/renderer/vulkan/ProgramExecutableVk.cpp
// Requires that trace is enabled to see the output, which is supported with is_debug=true
Requires that trace is enabled to see the output, which is supported with is_debug=true
Requires that trace is enabled to see the output which is supported with is_debug = true
void ProgramExecutableVk::outputCumulativePerfCounters()
{
    if (!vk::kOutputCumulativePerfCounters)
    {
        return;
    }
    {
        std::ostringstream text;
        for (size_t descriptorSetIndex = 0;
             descriptorSetIndex < mObjectPerfCounters.descriptorSetsAllocated.size();
             ++descriptorSetIndex)
        {
            uint32_t count = mObjectPerfCounters.descriptorSetsAllocated[descriptorSetIndex];
            if (count > 0)
            {
                text << "    DescriptorSetIndex " << descriptorSetIndex << ": " << count << "\n";
            }
        }
        std::string textStr = text.str();
        if (!textStr.empty())
        {
            INFO() << "ProgramExecutable: " << this << ":";
            std::istringstream iss(textStr);
            for (std::string line; std::getline(iss, line);)
            {
                INFO() << line;
            }
        }
    }
}
void ProgramExecutableVk :: outputCumulativePerfCounters ( ) { if ( ! vk :: kOutputCumulativePerfCounters ) { return ; } { std :: ostringstream text ; for ( size_t descriptorSetIndex = 0 ; descriptorSetIndex < mObjectPerfCounters . descriptorSetsAllocated . size ( ) ; ++ descriptorSetIndex ) { uint32_t count = mObjectPerfCounters . descriptorSetsAllocated [ descriptorSetIndex ] ; if ( count > 0 ) { text << " " << descriptorSetIndex << " " << count << " \n " ; } } std :: string textStr = text . str ( ) ; if ( ! textStr . empty ( ) ) { INFO ( ) << " " << this << " " ; std :: istringstream iss ( textStr ) ; for ( std :: string line ; std :: getline ( iss , line ) ; ) { INFO ( ) << line ; } } } }
Requires that trace is enabled to see the output, which is supported with is_debug=true
Requires that trace is enabled to see the output which is supported with is_debug = true
// Only output information for programs that allocated descriptor sets. // Output each descriptor set allocation on a single line, so they're prefixed with the // INFO information (file, line number, etc.). // https://stackoverflow.com/a/12514641