Debian Codegraph @

gn/toolchain/num_cpus.py

raw
1 #!/usr/bin/env python
2 #
3 # Copyright 2019 Google Inc.
4 #
5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file.
7
8 from __future__ import print_function
9
10 import multiprocessing
11
12 print(multiprocessing.cpu_count())