> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# query_profiler_* セッション設定

> query_profiler_* グループに生成される ClickHouse のセッション設定。

export const SettingsInfoBlock = ({type, default_value, changeable_without_restart}) => {
  return <div className="not-prose" style={{
    display: "flex",
    flexWrap: "wrap",
    alignItems: "baseline",
    columnGap: "0.5rem",
    rowGap: "0.125rem",
    margin: "0.375rem 0",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <div style={{
    fontWeight: 600,
    opacity: 0.72
  }}>型</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{type}</div>
      <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>デフォルト値</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{default_value}</div>
      {changeable_without_restart && <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>
          再起動せずに変更可能
        </div>}
      {changeable_without_restart && <div style={{
    overflowWrap: "anywhere"
  }}>
          {changeable_without_restart}
        </div>}
    </div>;
};

これらの設定は [system.settings](/docs/ja/reference/system-tables/settings) で確認でき、[source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp) から自動生成されています。

<div id="query_profiler_cpu_time_period_ns">
  ## query\_profiler\_cpu\_time\_period\_ns
</div>

<SettingsInfoBlock type="UInt64" default_value="1000000000" />

[クエリプロファイラ](/docs/ja/concepts/features/performance/troubleshoot/sampling-query-profiler)の CPU クロックタイマーの周期を設定します。このタイマーは CPU 時間のみを計測します。

設定可能な値:

* 正の整数 (単位はナノ秒) 。

  推奨値:

  * 単一クエリでは、10000000 (1 秒あたり 100 回) ナノ秒以上。
  * クラスター全体のプロファイリングでは、1000000000 (1 秒に 1 回) 。

* タイマーを無効にする場合は 0。

関連項目:

* システムテーブル [trace\_log](/docs/ja/reference/system-tables/trace_log)

<div id="query_profiler_real_time_period_ns">
  ## query\_profiler\_real\_time\_period\_ns
</div>

<SettingsInfoBlock type="UInt64" default_value="1000000000" />

[クエリプロファイラ](/docs/ja/concepts/features/performance/troubleshoot/sampling-query-profiler)の実クロックタイマーの周期を設定します。実クロックタイマーはウォールクロック時間を計測します。

設定可能な値:

* ナノ秒単位の正の整数。

  推奨値:

  * 単一クエリでは、10000000 (1秒あたり100回) ナノ秒以下。
  * クラスター全体のプロファイリングでは、1000000000 (1秒に1回) 。

* タイマーをオフにする場合は 0。

関連項目:

* システムテーブル [trace\_log](/docs/ja/reference/system-tables/trace_log)

Cloud でのデフォルト値: `3000000000`.
