Home
last modified time | relevance | path

Searched refs:ProfContext (Results 1 – 2 of 2) sorted by relevance

/third_party/mindspore/mindspore/core/utils/
Dprofile.h46 class ProfContext {
52 ProfContext(const std::string &name, ProfileBase *prof);
53 ~ProfContext();
55 ProfContext(const ProfContext &) = delete;
56 ProfContext &operator=(const ProfContext &) = delete;
65 ProfContext *parent_;
70 friend class ProfContext; variable
78 virtual ProfContext *Step(const std::string &) { return nullptr; } in Step()
79 virtual ProfContext *Lap(int) { return nullptr; } in Lap()
83 ProfContext context_;
[all …]
Dprofile.cc175 ProfContext *Profile::Step(const std::string &name) { in Step()
176 ctx_ptr_ = new (std::nothrow) ProfContext(name, this); in Step()
186 ProfContext *Profile::Lap(int count) { in Lap()
189 ctx_ptr_ = new (std::nothrow) ProfContext(oss.str(), this); in Lap()
204 ProfContext::ProfContext(const std::string &name, ProfileBase *const prof) : name_(name), prof_(pro… in ProfContext() function in mindspore::ProfContext
214 ProfContext::~ProfContext() { in ~ProfContext()
232 void ProfContext::SetTime(double time) noexcept { in SetTime()
243 void ProfContext::Insert(const std::string &name, const TimeInfo *time) noexcept { in Insert()
280 bool ProfContext::IsTopContext() const noexcept { return (prof_ != nullptr) && (this == &prof_->con… in IsTopContext()