# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import sys

from telemetry import decorators
from telemetry.core.platform import linux_platform_backend
from telemetry.core.platform import mac_platform_backend
from telemetry.core.platform import win_platform_backend

@decorators.Cache
def GetPlatformBackendForCurrentOS():
  if sys.platform.startswith('linux'):
    return linux_platform_backend.LinuxPlatformBackend()
  elif sys.platform == 'darwin':
    return mac_platform_backend.MacPlatformBackend()
  elif sys.platform == 'win32':
    return win_platform_backend.WinPlatformBackend()
  else:
    raise NotImplementedError()

# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import sys

from telemetry import decorators
from telemetry.core.platform import linux_platform_backend
from telemetry.core.platform import mac_platform_backend
from telemetry.core.platform import win_platform_backend


@decorators.Cache
def GetPlatformBackendForCurrentOS():
  if sys.platform.startswith('linux'):
    return linux_platform_backend.LinuxPlatformBackend()
  elif sys.platform == 'darwin':
    return mac_platform_backend.MacPlatformBackend()
  elif sys.platform == 'win32':
    return win_platform_backend.WinPlatformBackend()
  else:
    raise NotImplementedError()

Enable sandbox on OS X page cyclers
[Telemetry] Enable sandbox on OS X page cyclers

The sandbox is disabled when running the page cyclers because it interferes with collecting IO stats on some platforms.

The sandbox does not interfere with IO stat collection on OS X..

BUG=361049

Review URL: https://codereview.chromium.org/176603002

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@262377 0039d316-1c4b-4281-b951-d872f2087c98
