Home
last modified time | relevance | path

Searched refs:time (Results 1 - 25 of 170) sorted by relevance

1234567

/arkcompiler/runtime_core/platforms/windows/libpandabase/
H A Dtime.h20 #include <sys/time.h>
22 namespace panda::os::time { namespace in panda::os
27 struct timeval time = {0, 0}; in GetClockTime() local
28 if (gettimeofday(&time, nullptr) != -1) { in GetClockTime()
29 auto duration = std::chrono::seconds {time.tv_sec} + std::chrono::microseconds {time.tv_usec}; in GetClockTime()
35 } // namespace panda::os::time
/arkcompiler/ets_runtime/ecmascript/jit/
H A Djit_dfx.h87 void RecordSpentTimeAndPrintStatsLogInJsThread(int time) in RecordSpentTimeAndPrintStatsLogInJsThread() argument
89 SetTotalTimeOnMainThread(time); in RecordSpentTimeAndPrintStatsLogInJsThread()
103 void SetTotalTimeOnMainThread(int time) in SetTotalTimeOnMainThread() argument
105 jitEventParams.totalTimeOnMainThread_.fetch_add(time); in SetTotalTimeOnMainThread()
113 void SetSingleTimeOnMainThread(int time) in SetSingleTimeOnMainThread() argument
115 jitEventParams.singleTimeOnMainThread_.store(time); in SetSingleTimeOnMainThread()
123 void SetTotalTimeOnJitThread(int time) in SetTotalTimeOnJitThread() argument
125 jitEventParams.totalTimeOnJitThread_.fetch_add(time); in SetTotalTimeOnJitThread()
133 void SetSingleTimeOnJitThread(int time) in SetSingleTimeOnJitThread() argument
135 jitEventParams.singleTimeOnJitThread_.store(time); in SetSingleTimeOnJitThread()
182 SetLockHoldingTime(int time) SetLockHoldingTime() argument
228 ReportBlockUIEvent(int time) ReportBlockUIEvent() argument
[all...]
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/
H A Dtime.h21 #include <sys/time.h>
23 namespace ark::os::time { namespace in ark::os
28 struct timeval time = {0, 0}; in GetClockTime() local
29 if (gettimeofday(&time, nullptr) != -1) { in GetClockTime()
30 auto duration = std::chrono::seconds {time.tv_sec} + std::chrono::microseconds {time.tv_usec}; in GetClockTime()
43 } // namespace ark::os::time
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/
H A Dg1_analytics.h29 void ReportCollectionStart(uint64_t time);
35 void ReportScanDirtyCardsStart(uint64_t time);
36 void ReportScanDirtyCardsEnd(uint64_t time, size_t dirtyCardsCount);
37 void ReportMarkingStart(uint64_t time);
38 void ReportMarkingEnd(uint64_t time, size_t remsetRefsCount);
39 void ReportEvacuationStart(uint64_t time);
40 void ReportEvacuationEnd(uint64_t time);
41 void ReportUpdateRefsStart(uint64_t time);
42 void ReportUpdateRefsEnd(uint64_t time);
54 void ReportPredictedMixedPause(uint64_t time) in ReportPredictedMixedPause() argument
[all...]
H A Dg1_analytics.cpp17 #include "libpandabase/utils/time.h"
18 #include "libpandabase/os/time.h"
38 void G1Analytics::ReportMarkingStart(uint64_t time) in ReportMarkingStart() argument
40 markingStart_ = time; in ReportMarkingStart()
43 void G1Analytics::ReportMarkingEnd(uint64_t time, size_t remsetRefsCount) in ReportMarkingEnd() argument
45 markingEnd_ = time; in ReportMarkingEnd()
49 void G1Analytics::ReportScanDirtyCardsStart(uint64_t time) in ReportScanDirtyCardsStart() argument
51 scanDirtyCardsStart_ = time; in ReportScanDirtyCardsStart()
54 void G1Analytics::ReportScanDirtyCardsEnd(uint64_t time, size_t dirtyCardsCount) in ReportScanDirtyCardsEnd() argument
56 scanDirtyCardsEnd_ = time; in ReportScanDirtyCardsEnd()
60 ReportEvacuationStart(uint64_t time) ReportEvacuationStart() argument
65 ReportEvacuationEnd(uint64_t time) ReportEvacuationEnd() argument
70 ReportUpdateRefsStart(uint64_t time) ReportUpdateRefsStart() argument
75 ReportUpdateRefsEnd(uint64_t time) ReportUpdateRefsEnd() argument
123 ReportCollectionStart(uint64_t time) ReportCollectionStart() argument
[all...]
H A Dg1_pause_tracker.cpp19 #include "libpandabase/os/time.h"
23 : gcPauseIntervalUs_(gcPauseIntervalMs * ark::os::time::MILLIS_TO_MICRO), in G1PauseTracker()
24 maxGcTimeUs_(maxGcTimeMs * ark::os::time::MILLIS_TO_MICRO) in G1PauseTracker()
30 return AddPause(startTimeNs / ark::os::time::MICRO_TO_NANO, endTimeNs / ark::os::time::MICRO_TO_NANO); in AddPauseInNanos()
40 << ark::helpers::TimeConverter(gcTime * ark::os::time::MICRO_TO_NANO) << " > " in AddPause()
41 << ark::helpers::TimeConverter(maxGcTimeUs_ * ark::os::time::MICRO_TO_NANO) in AddPause()
42 << " in time interval " in AddPause()
43 << ark::helpers::TimeConverter(gcPauseIntervalUs_ * ark::os::time::MICRO_TO_NANO); in AddPause()
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/
H A Dtime.h24 namespace ark::os::time { namespace in ark::os
29 struct timespec time = {0, 0}; in GetClockTime() local
30 if (clock_gettime(clock, &time) != -1) { in GetClockTime()
31 auto duration = std::chrono::seconds {time.tv_sec} + std::chrono::nanoseconds {time.tv_nsec}; in GetClockTime()
47 // The number 22 is the position of the start real time entry in stat file, all entries in the file are separated by in GetStartRealTime()
57 auto time = std::chrono::duration<double>(stoull(timeStr) / static_cast<double>(clockTicksPerSecond)); in GetStartRealTime() local
58 return std::chrono::duration_cast<T>(time).count(); in GetStartRealTime()
63 } // namespace ark::os::time
/arkcompiler/runtime_core/platforms/unix/libpandabase/
H A Dtime.h21 namespace panda::os::time { namespace in panda::os
26 struct timespec time = {0, 0}; in GetClockTime() local
27 if (clock_gettime(clock, &time) != -1) { in GetClockTime()
28 auto duration = std::chrono::seconds {time.tv_sec} + std::chrono::nanoseconds {time.tv_nsec}; in GetClockTime()
34 } // namespace panda::os::time
/arkcompiler/ets_runtime/tools/ap_file_viewer/test/
H A Dtest_ap.py23 import time namespace
40 time.sleep(2)
58 time.sleep(2)
69 time.sleep(2)
71 time.sleep(2)
75 time.sleep(2)
85 time.sleep(2)
87 time.sleep(2)
91 time.sleep(2)
107 time
[all...]
/arkcompiler/ets_runtime/ecmascript/
H A Ddate_parse.cpp23 bool DateParse::ParseDateString(const char *str, int length, int *time) in ParseDateString() argument
38 bool success = timeZone.SetTimeZone(time) && timeValue.SetTimeValue(time) && dayValue.SetDayValue(time); in ParseDateString()
134 // parse 'z' | '+' | '-' time zone in ParseIsoDateTime()
188 // first parse as time "hh:" or "mm:" in ParseLegacyDates()
213 // then parse time "mm" or "ss" in ParseLegacyDates()
343 bool DateParse::TimeZone::SetTimeZone(int *time) in SetTimeZone() argument
349 time[TIMEZONE] = sign_ * (hour_ * SEC_PER_HOUR + min_ * SEC_PER_MINUTE); in SetTimeZone()
351 time[TIMEZON in SetTimeZone()
356 SetTimeValue(int *time) SetTimeValue() argument
379 SetDayValue(int *time) SetDayValue() argument
[all...]
/arkcompiler/runtime_core/static_core/runtime/
H A Dtiming.h23 #include "libpandabase/os/time.h"
24 #include "libpandabase/utils/time.h"
42 TimeLabel(std::string_view name, uint64_t time, uint64_t cpuTime, TimeLabelType type = TimeLabelType::BEGIN) in TimeLabel() argument
43 : name_(name), time_(time), cpuTime_(cpuTime), type_(type) in TimeLabel()
91 labels_.push_back(TimeLabel(tag, time::GetCurrentTimeInNanos(), ark::os::time::GetClockTimeInThreadCpuTime(), in NewSection()
97 labels_.push_back(TimeLabel("", time::GetCurrentTimeInNanos(), ark::os::time::GetClockTimeInThreadCpuTime(), in EndSection()
H A Dtime_utils.cpp20 #include "libpandabase/utils/time.h"
22 namespace ark::time { namespace in ark
62 std::time_t time = std::time(nullptr); in GetCurrentTimeString() local
63 std::tm *now = std::localtime(&time); in GetCurrentTimeString()
72 } // namespace ark::time
/arkcompiler/runtime_core/verifier/tests/
H A Dverify_262abc_files.py20 import time namespace
29 start_time = time.time()
47 end_time = time.time()
54 print(f"Execution time: {elapsed_time:.2f} seconds")
55 print(f"Completion time: {completion_time}")
H A Dverify_es2panda_test_abc.py21 import time namespace
93 end_time = time.time()
95 completion_time = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(end_time))
101 print(f"Execution time: {duration:.2f} seconds")
102 print(f"Completion time: {completion_time}")
106 start_time = time.time()
H A Dverify_sys_hap_abc.py23 import time namespace
54 verification_command = ["/usr/bin/time", "-v", ark_verifier_path, "--input_file", file_path]
64 if "User time (seconds)" in line:
173 start_time = time.time()
206 end_time = time.time()
208 completion_time = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(end_time))
210 print(f"\nExecution time
[all...]
/arkcompiler/ets_runtime/ecmascript/module/
H A Dmodule_logger.cpp123 std::string start = "<----Summary----> Total file number: " + std::to_string(totalFileNumber_) + ", total time: " + in PrintSummary()
125 ", cost time: " + std::to_string(usedFileTime_) + "ms, and unused file: " + in PrintSummary()
126 std::to_string(unusedFileNumber_) +", cost time: " + std::to_string(unusedFileTime_) + "ms\n"; in PrintSummary()
140 std::string start = "<----used file start----> used file: " + std::to_string(usedFileNumber_) + ", cost time: " in PrintUsedFileInfo()
148 ", cost time: " + ToStringWithPrecision(info->time, THREE) + "ms\n"; in PrintUsedFileInfo()
178 ", cost time: " + std::to_string(unusedFileTime_) + "ms\n"; in PrintUnusedFileInfo()
185 ", cost time: " + ToStringWithPrecision(info->time, THREE) + "ms\n"; in PrintUnusedFileInfo()
210 double time in ProcessModuleExecuteTime() local
251 double time = info->time; SetEndTime() local
[all...]
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
H A Dpgo_trace.h83 void SetProfileBytecodeTime(float time) in SetProfileBytecodeTime() argument
85 profileBytecodeTime_.push_back(time); in SetProfileBytecodeTime()
144 LOG_TRACE(INFO) << "only print methods which (total time > 10 ms || count > 10) on ohos device"; in Print()
161 void SetMergeTime(float time) in SetMergeTime() argument
163 mergeTime_ = time; in SetMergeTime()
166 void SetSaveTime(float time) in SetSaveTime() argument
168 saveTime_ = time; in SetSaveTime()
171 void SetMergeWithExistProfileTime(float time) in SetMergeWithExistProfileTime() argument
173 mergeWithExistProfileTime_ = time; in SetMergeWithExistProfileTime()
/arkcompiler/ets_frontend/test/scripts/sdk_test/
H A Dresult.py24 import time namespace
94 self.time = 0.0
101 logging.info("Total test number: %s, took time: %.3f s",
102 len(test_tasks), test_result.time)
118 logging.info("debug: %s, abc_size(byte) %s, time(s) %s, error message: %s",
121 full_task.debug_info.time,
123 logging.info("release: %s, abc_size(byte) %s, time(s) %s, error message: %s",
126 full_task.release_info.time,
133 logging.info("debug: %s, abc_size(byte) %s, time(s) %s, error message: %s",
136 inc_task.debug_info.time,
[all...]
H A Drun.py24 import time namespace
35 start_time = time.time()
/arkcompiler/ets_frontend/test/scripts/utils/flash_image/
H A Dburn_image.py22 import time namespace
74 time.sleep(5)
92 time.sleep(100)
96 time.sleep(1)
/arkcompiler/runtime_core/platforms/unix/libpandabase/futex/
H A Dmutex.cpp338 struct timespec time = {0, 0}; in ConvertTime() local
344 time.tv_sec += seconds; in ConvertTime()
345 time.tv_nsec += nanoseconds; in ConvertTime()
346 if (time.tv_nsec >= NANOSECONDS_PER_SEC) { in ConvertTime()
347 time.tv_nsec -= NANOSECONDS_PER_SEC; in ConvertTime()
348 time.tv_sec++; in ConvertTime()
350 return time; in ConvertTime()
373 struct timespec time = ConvertTime(ms, ns); in TimedWait() local
384 // FUTEX_WAIT_BITSET uses absolute time in TimedWait()
389 futex_call_res = futex(GetCondAddr(), WAIT_BITSET, cur_cond, &time, nullpt in TimedWait()
[all...]
/arkcompiler/runtime_core/static_core/runtime/mem/gc/gc-hung/
H A Dgc_hung.cpp28 #include <sys/time.h>
187 << helpers::TimeConverter(time::GetCurrentTimeInNanos() - startTime) << std::endl; in CheckSuspend()
201 << " current_time=" << helpers::TimeConverter(time::GetCurrentTimeInNanos()); in CheckFrequency()
204 lastGcTimeNs_ = time::GetCurrentTimeInNanos(); in CheckFrequency()
212 congestionDurationNs_ += (time::GetCurrentTimeInNanos() - lastGcTimeNs_); in CheckFrequency()
214 << " duration:" << helpers::TimeConverter(time::GetCurrentTimeInNanos() - lastGcTimeNs_); in CheckFrequency()
232 lastGcTimeNs_ = time::GetCurrentTimeInNanos(); in CheckFrequency()
237 uint64_t gcTime = time::GetCurrentTimeInNanos() - startTimeNs_; in CheckOvertime()
239 << " current_time=" << helpers::TimeConverter(time::GetCurrentTimeInNanos()) in CheckOvertime()
255 startTimeNs_ = time in UpdateStartTime()
[all...]
/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/
H A Dsampling_processor.cpp19 #include <sys/time.h>
116 struct timespec time; in GetMicrosecondsTimeStamp() local
117 clock_gettime(CLOCK_MONOTONIC, &time); in GetMicrosecondsTimeStamp()
118 return time.tv_sec * USEC_PER_SEC + time.tv_nsec / NSEC_PER_USEC; in GetMicrosecondsTimeStamp()
/arkcompiler/ets_frontend/test/scripts/performance_test/
H A Dperformance_entry.py19 import time namespace
96 self.time_index = [time.strftime("%Y/%m/%d", time.localtime())]
101 else: # time
185 y_label = 'build time (s)' if log_type < performance_config.LogType.SIZE else 'size (Byte)'
221 strat_time = time.time()
224 % (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), time
[all...]
/arkcompiler/runtime_core/libark_defect_scan_aux/tests/unittest/
H A Dasync_function_test.js46 const time = 1000;
48 await new Promise(resolve => setTimeout(resolve, time));

Completed in 8 milliseconds

1234567