可以使用 perfdump 实用程序来访问存储桶中的服务器统计信息。性能存储桶信息位于 perfdump 所返回报告的最后一部分。
该报告包含以下信息:
"Average"、"Total" 和 "Percent" 列给出每一个所请求的统计信息的数据。
"Request Processing Time" 是服务器处理迄今已收到的所有请求需要的总时间。
"Number of Requests" 是函数的请求总数。
"Number of Invocations" 是函数的总调用次数。该值与请求数不同,因为处理一个请求时可能会多次调用某个函数。此行的百分比列是参照所有存储桶的调用总数计算得出的。
"Latency" 是 Proxy Server 为调用函数进行准备所花费的时间(以秒为单位)。
"Function Processing Time" 是 Proxy Server 在函数内部花费的时间(以秒为单位)。"Function Processing Time" 和 "Total Response Time" 的百分比是参照总的 "Request Processing Time" 计算得出的。
"Total Response Time" 为 "Function Processing Time" 和 "Latency" 之和。
以下显示了可通过 perfdump 获取的性能存储桶信息样例:
Performance Counters: ------------------------------------------------ Average Total Percent Total number of requests: 1 Request processing time: 0.2559 0.2559 default-bucket (Default bucket) Number of Requests: 1 (100.00%) Number of Invocations: 7 (100.00%) Latency: 0.2483 0.2483 ( 97.04%) Function Processing Time: 0.0076 0.0076 ( 2.96%) Total Response Time: 0.2559 0.2559 (100.00%) |