当前位置:首页>python>python提取时序特征_tsfresh

python提取时序特征_tsfresh

  • 2026-04-20 10:44:32
python提取时序特征_tsfresh

tsfresh 是一个Python包。专门用于构建时间序列特征(包含均值、方法、偏度和自相关性等)。此外,该包还可用于在分类或回归任务中解释特征重要性。

tsfresh的主要特点:

  • 可并行并高效自动构建时间序列特征
  • 与Python库pandas和scikit-learn兼容

tsfresh的局限性:

  • 在线操作的数据不适用(也称流式数据),时间序列数据通常用于离线操作
  • 不包含模型训练的功能(训练模型请使用其他包,如scikit-learn)
  • 仅考虑时序的顺序性,对时间间隔差异较大的情况不适用

1 安装

pip install tsfresh

如果处理的数据量太大,不适合放入内存处理,安装tsfresh Dask

pip install tsfresh[dask]

大型时间序列数据面临的最重要两个问题是:①特征提取执行时间过长(一般可以采用“并行化”处理),②内存消耗巨大,可能超出单台机器的处理能力

tsfresh的 tsfresh.extract_features() 函数接受dask dataframe作为输入,允许将计算扩展到本地内存之外。可以直接替代pandas dataframe

2 使用

提取所有特征,执行操作:

from tsfresh import extract_featuresextract_features_res = extract_features(dataframe,column_id="id",column_sort="time")

最终得到一个名为extract_features_res的dataframe。剔除所有NaN值,然后仅选择与目标变量y相关的特征

from tsfresh import select_featuresfrom tsfresh.utilities.dataframe_functions import imputeimpute(extract_features_res)features_filtered = select_features(extract_features_res,y)

甚至可以同时执行提取、插补、过滤操作:

from tsfresh import extract_relevant_featuresfeatures_filitered_direct = extract_relevant_features(dataframe,y,                                column_id="id",column_sort="time")

利用提取的特征训练一个随机森林分类器代码示例:https://github.com/blue-yonder/tsfresh/blob/main/notebooks/01%20Feature%20Extraction%20and%20Selection.ipynb

3 tsfresh支持的数据格式

tsfresh提供了三种不同的选项来指定要与该函数一起使用的时间序列数据的格式,但无论输入数据格式如何,tsfresh始终以相同输出格式返回计算出的特征

3.1  输入数据

在调用tsfresh包中的特征工程构建时,需要指定四个关键参数:column_id(必需), column_sort(必需), column_value(可选), column_kind(可选)。以机器人故障数据集为例进行说明:

这种情况下,column_id对应机器人的唯一编号(此列指时间序列所属的实体),column_sort每个机器人传感器测量值的时间戳(此列包含用于对时间序列进行排序的值),column_value对应机器人上不同传感器的测量值,column_kind对应传感器的类型。

【重要】这些列均不允许包含NaN、Inf或-Inf值

tsfresh支持三种不同的时间序列数据格式:

1.Flat DataFrame or Wide DataFrame(宽数据框)

id
time
x
y
A
t1
x(A,t1)
y(A,t1)
A
t2
x(A,t2)
y(A,t2)
B
t1
x(A,t1)
y(A,t1)
B
t2
x(A,t2)
y(A,t2)
column_id="id", column_sort="time", column_kind=None, column_value=None` #column_kind,column_value可省略不写

2.Stacked DataFrame or Long DataFrame(长数据框)

id
time
kind
value
A
t1
x
x(A,t1)
A
t2
x
x(A,t2)
B
t1
x
x(B,t1)
B
t2
x
x(B,t2)
A
t1
y
y(A,t1)
A
t2
y
y(A,t2)
B
t1
y
y(B,t1)
B
t2
y
y(B,t2)
column_id="id", column_sort="time", column_kind="kind", column_value="value"

3.Dictionary of flat DataFrames

格式如下:

{'x':DataFrame(x),'y':DataFrame(y)}

其中 DataFrame(x) 具体如下所示:

id
time
value
A
t1
x(A,t1)
A
t2
x(A,t2)
B
t1
x(B,t1)
B
t2
x(B,t2)

其中 DataFrame(y) 具体如下所示:

id
time
value
A
t1
y(A,t1)
A
t2
y(A,t2)
B
t1
y(B,t1)
B
t2
y(B,t2)
column_id="id", column_sort="time", column_kind=None, column_value="value" #column_kind不需要指定,就是相应的字典键

3.2 输出特征

对于三种输入数据格式,最终得到的特征矩阵都是相同的。始终是一个pandas.DataFrame,示例如下:

id
x_feature_1
...
x_feature_N
y_feature_1
...
y_feature_N
A
...
...
...
...
...
...
B
...
...
...
...
...
...

特征命名规则:

{time_series_name}__{feature_name}__{parameter name 1}_{parameter value 1}__[..]__{parameter name k}_{parameter value k}

特征命名示例:

temperature__quantile__q_0.6

4 功能

4.1 特征提取

tsfresh提供2种方式进行特征提取:

  • 默认方式:直接调用 tsfresh.extract_features() 而不传递参数(default_fc_parameters 和 kind_to_fc_parameters ),将使用 ComprehensiveFCParameters ,提取所有可以默认返回的特征
  • 自定义方式:通过一个字典(fc_parameters)精确控制。字典的键是特征函数名,值是该函数的参数列表(无参数则为None)
# 示例:提取 length 特征,以及两个不同参数的 large_standard_deviation 特征fc_parameters = {    "length": None,    "large_standard_deviation": [{"r": 0.05}, {"r": 0.1}]     }

预定义设置:

  • ComprehensiveFCParameters
    :全量特征(默认)
  • MinimalFCParameters
    :最小特征集,用于快速测试
  • EfficientFCParameters
     :排除高计算成本的特征,适合性能敏感场景

高级用法:使用 kind_to_fc_parameters 参数,为不同类型的时间序列(如“temperature”、“pressure”)分别指定特征

实用技巧:通过 from_columns() 方法,可以从已筛选的特征矩阵的列名反向生成设置字典,避免重复计算无用特征

11121314# 示例X_tsfresh = extract_features(...)                # 提取全量特征X_filtered = some_feature_selection(X_tsfresh)   # 特征筛选# 自动生成设置,只计算筛选后需要的特征kind_to_fc_parameters = from_columns(X_filtered)

tsfresh内置特征的详细列表:https://tsfresh.readthedocs.io/en/v0.17.0/text/list_of_features.htmltsfresh内置特征的详细源码:https://github.com/blue-yonder/tsfresh/blob/v0.17.0/tsfresh/feature_extraction/feature_calculators.py

当内置特征不满足需求时,可通过编写自己的特征计算函数,实现扩展自定义特征:

  • 步骤1:选择特征类型
    • simple:返回单个特征值
    • combiner:返回多个特征值(效率更高,可共享中间计算)
  • 步骤2:编写函数:使用 @set_property("fctype","...") 装饰器声明类型,并按模板编写

1.无参数的simple特征

from tsfresh.feature_extraction.feature_calculators import set_property@set_property("fctype""simple")def your_feature_calculator(x):    # x时pandas.Series类型的时间序列    result = ... #计算逻辑,结果为float、int或bool    return result

2.带参数的simple特征

@set_property("fctype""simple")def your_feature_calculator(x, p1, p2):    # x: 时间序列, p1, p2: 参数    result = ...     return result

3.combiner特征(返回多个值)

from tsfresh.utilities.string_manipulation import convert_to_output_format@set_property("fctype""combiner")def your_feature_calculator(x, param):    # param: 参数列表,每个元素是一个字典,对应一组参数组合    results = []    for config in param:        value = ... # 计算该组参数对应的特征值        # convert_to_output_format 将参数字典转为字符串标识        results.append((convert_to_output_format(config), value))    return results

特殊类型:基于时间的特征如果特征计算需要用到时间序列的时间索引(例如DatetimeIndex),需要额外设置两个属性:

@set_property("input""pd.Series")      # 声明输入是含索引的 Series@set_property("index_type", pd.DatetimeIndex# 声明索引类型def timespan(x, param):    # 可以直接使用 x.index 获取时间索引进行计算    times_seconds = (x.index[-1] - x.index[0]).total_seconds()    return times_seconds / 3600.0
  • 步骤3:加入设置:将自定义函数作为键添加到设置字典中,并传递给 extract_features() ,否则不会被调用
from tsfresh.feature_extraction import extract_featuresfrom tsfresh.feature_extraction.settings import ComprehensiveFCParameters# 创建设置对象(可选用 ComprehensiveFCParameters 等)settings = ComprehensiveFCParameters()# 将你的函数加入设置字典# 若无参数:值为 Nonesettings[your_feature_calculator] = None# 若有参数:值为一个列表,包含你想使用的所有参数组合(字典形式)# settings[your_feature_calculator] = [{"p1": 1, "p2": 2}, {"p1": 3, "p2": 4}]# 调用提取函数时传入 custom settingsextract_features(df, default_fc_parameters=settings)

4.2 特征过滤

特征选择的核心问题时识别所有强相关和弱相关特征,为了限制不相干特征的数量,tsfresh部署了fresh算法,该算法由 tsfresh.feature_selection.relevance.calculate_relevance() 调用。它是一种高效、可扩展的特征提取算法,在机器学习流程的早期阶段,根据特征对分类或回归任务的重要性对可用特征进行筛选,同时控制所选但不相关特征的预期百分比。

对提取的每个特征进行单独且独立的评估,确定该特征对预测目标的重要性。这些测试位于子模块 tsfresh.feature_selection.significance_tests 中,测试结果是一个p值向量,用于量化每个特征对预测标签/目标的重要性。(如下图)

计算出每个特征对应的p值后,在基于Benjamini-Yekutieli 方法对p值向量进行评估,以确定保留哪些特征。该多重检验方法来自statsmodel包

tsfresh内置假设检验的源码:https://github.com/blue-yonder/tsfresh/blob/v0.17.0/tsfresh/feature_selection/significance_tests.py

4.3 进阶:大型时间序列数据处理

大型时间序列数据存在问题:

  • 计算时间长
  • 内存消耗大

解决方案:

  • 使用分布式计算框架(如Dask、Spark),将数据分块、计算分布式化,同时关闭高开销的“透视”操作,实现在有限资源下处理大型时间序列数据

tsfresh解决方案:使用Dask

Dask DataFrame的API与pandas类似,可直接将Dask DataFrame传给 tsfresh.extract_features()

import dask.dataframe as ddfrom tsfresh import extract_features# 读取数据(例如从 Parquet 文件)df = dd.read_parquet("your_large_data.parquet")# 进行特征提取,关键参数 pivot=False 可避免性能瓶颈X = extract_features(df,                     column_id="id",          # 标识时间序列的列                     column_sort="time",      # 排序用的时间列                     pivot=False)             # 推荐关闭透视,节省计算# 触发实际计算result = X.compute()

【注】特征提取的最后一步是将结果转为表格形式(pivot),这对大数据集时性能瓶颈,若不需要完整表格,设置 pivot=False ,以未透视的格式处理数据

若需要优化计算图,可使用底层绑定函数,手动控制数据格式:

from tsfresh.convenience.bindings import dask_feature_extraction_on_chunk# 注意:df_grouped 必须已经是 tsfresh 所需的正确格式features = dask_feature_extraction_on_chunk(df_grouped,                                            column_id="id",                                            column_kind="kind",                                            column_sort="time",                                            column_value="value")# 此模式下不会进行透视操作                                    

其他方案:PySpark

官方文档提到也支持PySpark,可以通过类似 tsfresh.convenience.bindings.spark_feature_extraction_on_chunk() 的函数,将特征提取整合到Spark计算图中,适合已在使用Spark生态系统的用户

相关资源

  • 官方文档:https://tsfresh.readthedocs.io/en/latest
  • 官方代码:https://github.com/blue-yonder/tsfresh/tree/main/tsfresh
  • tsfresh特征模块翻译:https://github.com/SimaShanhe/tsfresh-feature-translation

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-04-21 18:53:08 HTTP/2.0 GET : https://f.mffb.com.cn/a/486504.html
  2. 运行时间 : 0.158673s [ 吞吐率:6.30req/s ] 内存消耗:4,673.96kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=55c8912ea4f2632b1dd5e2ffa07944c9
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.001134s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001616s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000765s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.001110s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000496s ]
  6. SELECT * FROM `set` [ RunTime:0.000197s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000562s ]
  8. SELECT * FROM `article` WHERE `id` = 486504 LIMIT 1 [ RunTime:0.000450s ]
  9. UPDATE `article` SET `lasttime` = 1776768788 WHERE `id` = 486504 [ RunTime:0.001262s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000234s ]
  11. SELECT * FROM `article` WHERE `id` < 486504 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000402s ]
  12. SELECT * FROM `article` WHERE `id` > 486504 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000361s ]
  13. SELECT * FROM `article` WHERE `id` < 486504 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.001099s ]
  14. SELECT * FROM `article` WHERE `id` < 486504 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.000909s ]
  15. SELECT * FROM `article` WHERE `id` < 486504 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.001296s ]
0.160230s