Firefox网络面板中的彩色条代表什么? [英] What do the colored bars in the Firefox net panel represent?

查看:150
本文介绍了Firefox网络面板中的彩色条代表什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在firefox开发者工具中,在Net面板下,加载的资源将加载时间分成不同的颜色/类别。这些是:
$ b


  • DNS查询

  • 连接
  • 阻止

  • 发送

  • 等待

  • 接收



这些代表是什么,更具体地说,它们中的任何一个是否准确地表示服务器正在思考的时间(访问数据库,运行算法等)? >

谢谢。

解决方案

您无法准确确定服务器在做什么因此,我担心。

除了等待之外,您可以打折大部分服务,但是,其余部分发生在服务器处理您的请求之前和之后。当你等待的时候,它实际上是一个'黑匣子'。

在发送和接收过程中可能会发生一些异步操作,所以很难准确但是你可以得到服务器工作时间和请求花费的时间。

编辑 p>

粗略定义:

DNS查找:将网址转换为目标IP地址通过使用DNS服务器
连接:建立与网络服务器的连接



阻止:以前称为排队,这是更详细的解释这里

发送:将您的HTTP请求发送到服务器

<等待:等待服务器的响应 - 这可能是d完成所有工作
$ b

接收:从服务器获取HTTP响应


In the firefox developer tools, under the "Net" panel, resources that are loaded have their load time split into different colors/categories. These are:

  • DNS Lookup
  • Connecting
  • Blocking
  • Sending
  • Waiting
  • Receiving

What do each of these represent, and more specifically, does any of them accurately represent the amount of time that the server is thinking (accessing the database, running algorithms, etc)?

Thanks.

解决方案

You couldn't accurately determine what the server is doing as such, I'm afraid.

You can discount most of them except Waiting, however, as the rest occur before and after the server handles your request. What it actually does while you wait will be a 'black box'.

There may be some asynchronous operations taking place during Sending and Receiving, so again it's hard to be accurate but you can get a ballpark figure of the time the server is working and the time the request spends travelling back and forth.

EDIT

Rough Definitions:

DNS Lookup: Translating the web address into a destination IP address by using a DNS server Connecting: Establishing a connection with the web server

Blocking: Previously known as 'queueing', this is explained in more detail here

Sending: Sending your HTTP Request to the server

Waiting: Waiting for a response from the server - this is where it's probably doing all the work

Receiving: Getting the HTTP response back from the server

这篇关于Firefox网络面板中的彩色条代表什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆