Lines Matching refs:header_
341 header_(reinterpret_cast<MemoryHeader*>(memory)), in ActivityUserData()
351 if (header_->owner.data_id.load(std::memory_order_acquire) == 0) in ActivityUserData()
352 header_->owner.Release_Initialize(pid); in ActivityUserData()
358 header_->owner.data_id.load(std::memory_order_acquire); in ActivityUserData()
359 *const_cast<int64_t*>(&orig_process_id) = header_->owner.process_id; in ActivityUserData()
360 *const_cast<int64_t*>(&orig_create_stamp) = header_->owner.create_stamp; in ActivityUserData()
430 return header_; in GetBaseAddress()
435 if (!header_) in SetOwningProcessIdForTesting()
437 header_->owner.SetOwningProcessIdForTesting(pid, stamp); in SetOwningProcessIdForTesting()
594 if (header_->owner.data_id.load(std::memory_order_acquire) != orig_data_id || in ImportExistingData()
595 header_->owner.process_id != orig_process_id || in ImportExistingData()
596 header_->owner.create_stamp != orig_create_stamp) { in ImportExistingData()
687 : header_(static_cast<Header*>(base)), in ThreadActivityTracker()
712 sizeof(header_->thread_ref) == sizeof(header_->thread_ref.as_id), in ThreadActivityTracker()
722 if (header_->owner.data_id.load(std::memory_order_relaxed) == 0) { in ThreadActivityTracker()
724 DCHECK_EQ(0, header_->owner.process_id); in ThreadActivityTracker()
725 DCHECK_EQ(0, header_->owner.create_stamp); in ThreadActivityTracker()
726 DCHECK_EQ(0, header_->thread_ref.as_id); in ThreadActivityTracker()
727 DCHECK_EQ(0, header_->start_time); in ThreadActivityTracker()
728 DCHECK_EQ(0, header_->start_ticks); in ThreadActivityTracker()
729 DCHECK_EQ(0U, header_->stack_slots); in ThreadActivityTracker()
730 DCHECK_EQ(0U, header_->current_depth.load(std::memory_order_relaxed)); in ThreadActivityTracker()
731 DCHECK_EQ(0U, header_->data_version.load(std::memory_order_relaxed)); in ThreadActivityTracker()
738 header_->thread_ref.as_tid = PlatformThread::CurrentId(); in ThreadActivityTracker()
740 header_->thread_ref.as_handle = in ThreadActivityTracker()
744 header_->start_time = base::Time::Now().ToInternalValue(); in ThreadActivityTracker()
745 header_->start_ticks = base::TimeTicks::Now().ToInternalValue(); in ThreadActivityTracker()
746 header_->stack_slots = stack_slots_; in ThreadActivityTracker()
747 strlcpy(header_->thread_name, PlatformThread::GetName(), in ThreadActivityTracker()
748 sizeof(header_->thread_name)); in ThreadActivityTracker()
752 header_->owner.Release_Initialize(); in ThreadActivityTracker()
776 uint32_t depth = header_->current_depth.load(std::memory_order_relaxed); in PushActivity()
783 header_->current_depth.store(depth + 1, std::memory_order_relaxed); in PushActivity()
795 header_->current_depth.store(depth + 1, std::memory_order_release); in PushActivity()
807 DCHECK_LT(id, header_->current_depth.load(std::memory_order_acquire)); in ChangeActivity()
832 header_->current_depth.fetch_sub(1, std::memory_order_relaxed) - 1; in PopActivity()
847 header_->data_version.fetch_add(1, std::memory_order_release); in PopActivity()
891 Activity::FillFrom(&header_->last_exception, program_counter, origin, type, in RecordExceptionActivity()
896 header_->data_version.fetch_add(1, std::memory_order_relaxed); in RecordExceptionActivity()
900 if (header_->owner.data_id.load(std::memory_order_acquire) == 0 || in IsValid()
901 header_->owner.process_id == 0 || header_->thread_ref.as_id == 0 || in IsValid()
902 header_->start_time == 0 || header_->start_ticks == 0 || in IsValid()
903 header_->stack_slots != stack_slots_ || in IsValid()
904 header_->thread_name[sizeof(header_->thread_name) - 1] != '\0') { in IsValid()
937 header_->owner.data_id.load(std::memory_order_acquire); in CreateSnapshot()
938 const int64_t starting_create_stamp = header_->owner.create_stamp; in CreateSnapshot()
939 const int64_t starting_process_id = header_->owner.process_id; in CreateSnapshot()
940 const int64_t starting_thread_id = header_->thread_ref.as_id; in CreateSnapshot()
948 header_->data_version.load(std::memory_order_seq_cst); in CreateSnapshot()
951 depth = header_->current_depth.load(std::memory_order_acquire); in CreateSnapshot()
961 memcpy(&output_snapshot->last_exception, &header_->last_exception, in CreateSnapshot()
968 if (header_->data_version.load(std::memory_order_seq_cst) != pre_version) in CreateSnapshot()
976 std::string(header_->thread_name, sizeof(header_->thread_name) - 1); in CreateSnapshot()
977 output_snapshot->create_stamp = header_->owner.create_stamp; in CreateSnapshot()
978 output_snapshot->thread_id = header_->thread_ref.as_id; in CreateSnapshot()
979 output_snapshot->process_id = header_->owner.process_id; in CreateSnapshot()
989 if (header_->owner.data_id.load(std::memory_order_seq_cst) != starting_id || in CreateSnapshot()
1003 const Time start_time = Time::FromInternalValue(header_->start_time); in CreateSnapshot()
1004 const int64_t start_ticks = header_->start_ticks; in CreateSnapshot()
1025 return header_; in GetBaseAddress()
1029 return header_->data_version.load(std::memory_order_relaxed); in GetDataVersionForTesting()
1034 header_->owner.SetOwningProcessIdForTesting(pid, stamp); in SetOwningProcessIdForTesting()