<commit_before># Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

{
  'variables': {
    'chromium_code': 1,
  },
  'targets': [
    {
      'target_name': 'benchmark',
      'type': 'none',
      'variables': {
        'benchmark_sources': [
          'benchmark.py',
          'chrome_control.py',
          'chrome_control_test.py',
          'chrome_utils.py',
          'event_counter.py',
          'ibmperf.py',
          'ibmperf_test.py',
          'instrument.py',
          'optimize.py',
          'profile.py',
          'runner.py',
          'setup.py',
          'trace_event.py',
          'zip_benchmark.py',
        ],
        # The executables generated by the dependencies of the benchmark
        # build rule. These need to go to inputs of the action below to make
        # sure the benchmark egg is rebuilt on any change to them.
        'benchmark_executables': [
          '<(PRODUCT_DIR)/run_in_snapshot.exe',
          '<(PRODUCT_DIR)/run_in_snapshot_xp.exe',
          '<(PRODUCT_DIR)/run_in_snapshot_x64.exe',
          '<(PRODUCT_DIR)/call_trace_client.dll',
          '<(PRODUCT_DIR)/call_trace_control.exe',
          '<(PRODUCT_DIR)/call_trace_service.exe',
          '<(PRODUCT_DIR)/profile_client.dll',
          '<(PRODUCT_DIR)/instrument.exe',
          '<(PRODUCT_DIR)/relink.exe',
          '<(PRODUCT_DIR)/reorder.exe',
          '<(PRODUCT_DIR)/virtualenv.exe',
          '<(PRODUCT_DIR)/wsdump.exe',
        ],
        'setup_file': 'setup.py',
        'success_file': '<(PRODUCT_DIR)/Benchmark-egg-success.txt',
        'script_file': '<(src)/syzygy/build/build_egg.py',
      },
      'sources': [
        '<@(benchmark_sources)',
      ],
      'dependencies': [
        '<(src)/syzygy/agent/call_trace/call_trace.gyp:call_trace_client',
        '<(src)/syzygy/agent/profiler/profiler.gyp:profile_client',
        '<(src)/syzygy/snapshot/snapshot.gyp:run_in_snapshot',
        '<(src)/syzygy/snapshot/snapshot.gyp:run_in_snapshot_xp',
        '<(src)/syzygy/snapshot/snapshot.gyp:run_in_snapshot_x64',
        '<(src)/syzygy/trace/etw_control/etw_control.gyp:call_trace_control',
        '<(src)/syzygy/trace/service/service.gyp:call_trace_service_exe',
        '<(src)/syzygy/instrument/instrument.gyp:instrument',
        '<(src)/syzygy/relink/relink.gyp:relink',
        '<(src)/syzygy/reorder/reorder.gyp:reorder',
        '<(src)/syzygy/py/py.gyp:virtualenv',
        '<(src)/syzygy/py/etw_db/etw_db.gyp:etw',
        '<(src)/syzygy/py/etw_db/etw_db.gyp:etw_db',
        '<(src)/syzygy/wsdump/wsdump.gyp:wsdump',
        '<(src)/third_party/dromaeo/dromaeo.gyp:dromaeo_zip',
      ],
      'actions': [
        {
          'action_name': 'build_benchmark',
          'msvs_cygwin_shell': 0,
          'inputs': [
            '<(script_file)',
            '<(setup_file)',
            '<@(benchmark_sources)',
            '<@(benchmark_executables)',
          ],
          'outputs': [
            '<(success_file)',
          ],
          'action': [
            '"<(PRODUCT_DIR)/py/scripts/python"',
            '<(script_file)',
            '--setup-file', '<(setup_file)',
            '--build-dir', '<(PRODUCT_DIR)/temp/benchmark',
            '--success-file', '<(success_file)',
            '--',
            'install_data',
                '--exe-dir', '<(PRODUCT_DIR)',
          ],
        },
      ],
    },
    {
      'target_name': 'benchmark_zip',<commit_msg>Fix dependencies in benchmark.gyp<commit_after># Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

{
  'variables': {
    'chromium_code': 1,
  },
  'targets': [
    {
      'target_name': 'benchmark',
      'type': 'none',
      'variables': {
        'benchmark_sources': [
          'benchmark.py',
          'chrome_control.py',
          'chrome_control_test.py',
          'chrome_utils.py',
          'event_counter.py',
          'ibmperf.py',
          'ibmperf_test.py',
          'instrument.py',
          'optimize.py',
          'profile.py',
          'runner.py',
          'setup.py',
          'trace_event.py',
          'zip_benchmark.py',
        ],
        # The executables generated by the dependencies of the benchmark
        # build rule. These need to go to inputs of the action below to make
        # sure the benchmark egg is rebuilt on any change to them.
        'benchmark_executables': [
          '<(PRODUCT_DIR)/asan_rtl.dll',
          '<(PRODUCT_DIR)/basic_block_entry_client.dll',
          '<(PRODUCT_DIR)/call_trace_client.dll',
          '<(PRODUCT_DIR)/call_trace_control.exe',
          '<(PRODUCT_DIR)/call_trace_service.exe',
          '<(PRODUCT_DIR)/coverage_client.dll',
          '<(PRODUCT_DIR)/dromaeo.zip',
          '<(PRODUCT_DIR)/grinder.exe',
          '<(PRODUCT_DIR)/instrument.exe',
          '<(PRODUCT_DIR)/logger.exe',
          '<(PRODUCT_DIR)/profile_client.dll',
          '<(PRODUCT_DIR)/relink.exe',
          '<(PRODUCT_DIR)/reorder.exe',
          '<(PRODUCT_DIR)/run_in_snapshot.exe',
          '<(PRODUCT_DIR)/run_in_snapshot_xp.exe',
          '<(PRODUCT_DIR)/run_in_snapshot_x64.exe',
          '<(PRODUCT_DIR)/virtualenv.exe',
          '<(PRODUCT_DIR)/wsdump.exe',
        ],
        'setup_file': 'setup.py',
        'success_file': '<(PRODUCT_DIR)/Benchmark-egg-success.txt',
        'script_file': '<(src)/syzygy/build/build_egg.py',
      },
      'sources': [
        '<@(benchmark_sources)',
      ],
      'dependencies': [
        '<(src)/syzygy/agent/asan/asan.gyp:asan_rtl',
        '<(src)/syzygy/agent/basic_block_entry/basic_block_entry.gyp:'
            'basic_block_entry_client',
        '<(src)/syzygy/agent/call_trace/call_trace.gyp:call_trace_client',
        '<(src)/syzygy/agent/coverage/coverage.gyp:coverage_client',
        '<(src)/syzygy/agent/profiler/profiler.gyp:profile_client',
        '<(src)/syzygy/grinder/grinder.gyp:grinder',
        '<(src)/syzygy/instrument/instrument.gyp:instrument',
        '<(src)/syzygy/py/py.gyp:virtualenv',
        '<(src)/syzygy/py/etw_db/etw_db.gyp:etw',
        '<(src)/syzygy/py/etw_db/etw_db.gyp:etw_db',
        '<(src)/syzygy/relink/relink.gyp:relink',
        '<(src)/syzygy/reorder/reorder.gyp:reorder',
        '<(src)/syzygy/snapshot/snapshot.gyp:run_in_snapshot',
        '<(src)/syzygy/snapshot/snapshot.gyp:run_in_snapshot_xp',
        '<(src)/syzygy/snapshot/snapshot.gyp:run_in_snapshot_x64',
        '<(src)/syzygy/trace/etw_control/etw_control.gyp:call_trace_control',
        '<(src)/syzygy/trace/logger/logger.gyp:logger',
        '<(src)/syzygy/trace/service/service.gyp:call_trace_service_exe',
        '<(src)/syzygy/wsdump/wsdump.gyp:wsdump',
        '<(src)/third_party/dromaeo/dromaeo.gyp:dromaeo_zip',
      ],
      'actions': [
        {
          'action_name': 'build_benchmark',
          'msvs_cygwin_shell': 0,
          'inputs': [
            '<(script_file)',
            '<(setup_file)',
            '<@(benchmark_sources)',
            '<@(benchmark_executables)',
          ],
          'outputs': [
            '<(success_file)',
          ],
          'action': [
            '"<(PRODUCT_DIR)/py/scripts/python"',
            '<(script_file)',
            '--setup-file', '<(setup_file)',
            '--build-dir', '<(PRODUCT_DIR)/temp/benchmark',
            '--success-file', '<(success_file)',
            '--',
            'install_data',
                '--exe-dir', '<(PRODUCT_DIR)',
          ],
        },
      ],
    },
    {
      'target_name': 'benchmark_zip',
{'fraction_non_alphanumeric': 0.15768602752507582, 'fraction_numerical': 0.0032656869605784933, 'mean_word_length': 2.304431599229287, 'pattern_counts': {'":': 0, '<': 96, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7376786', 'n_tokens_mistral': 2904, 'n_tokens_neox': 2948, 'n_words': 428}