You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
562 B
33 lines
562 B
//
|
|
// Copyright © 2019 Arm Ltd. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include "ProfilingGuid.hpp"
|
|
|
|
#include <string>
|
|
|
|
namespace arm
|
|
{
|
|
|
|
namespace pipe
|
|
{
|
|
|
|
class IProfilingGuidGenerator
|
|
{
|
|
public:
|
|
/// Return the next random Guid in the sequence
|
|
virtual ProfilingDynamicGuid NextGuid() = 0;
|
|
|
|
/// Create a ProfilingStaticGuid based on a hash of the string
|
|
virtual ProfilingStaticGuid GenerateStaticId(const std::string& str) = 0;
|
|
|
|
virtual ~IProfilingGuidGenerator() {}
|
|
};
|
|
|
|
} // namespace pipe
|
|
|
|
} // namespace arm
|