Chrome性能日志消息中的时间戳格式是什么?

2024-03-29 02:16:03 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用Selenium和ChromeDriver从Chrome获取性能日志。在

caps = DesiredCapabilities.CHROME
caps['loggingPrefs'] = {'performance': 'ALL'}

driver = webdriver.Chrome(desired_capabilities=caps)
driver.get("some.website")
time.sleep(5)

for entry in driver.get_log('performance'):
    print(entry)

在检查这些消息时,我发现了一个timestamp字段,其值很奇怪(779922.902049)。所以我的问题是这个timestamp字段的格式是什么?在

^{pr2}$

注意在上述消息中还有另一个timestamp字段,该字段是纪元后的毫秒。但这不是我要问的领域。在


Tags: 消息getdriverseleniumperformancecapsallchrome