On my system / build (android-13), some stats (out/soong.log):

2023/02/06 08:47:52.672569 build/soong/cmd/soong_ui/main.go:204: Detected 
188 GB total RAM
2023/02/06 08:47:52.672630 build/soong/cmd/soong_ui/main.go:205: 
Parallelism (local/remote/highmem): 160/0/23
2023/02/06 08:47:52.672645 build/soong/cmd/soong_ui/main.go:619: Current 
file limits: 1024 soft, 1048576 hard
2023/02/06 08:47:52.672676 build/soong/cmd/soong_ui/main.go:232: Took 133ms 
to start up.
...
2023/02/06 08:47:53.969862 build/soong/ui/build/exec.go:64: "soong 
bootstrap" executing "prebuilts/build-tools/linux-x86/bin/nsjail" [-x 
prebuilts/build-tools/linux-x86/bin/ninja -H android-build --cwd 
/home/<user>/android-13-ms12 -t 0 -e --proc_rw -u nobody -g nogroup 
--rlimit_as soft --rlimit_core soft --rlimit_cpu soft --rlimit_fsize soft 
--rlimit_nofile soft -R / -B /tmp -B /home/<user>/android-13-ms12 -B 
/home/<user>/android-13-ms12/out --disable_clone_newcgroup -q -- -d 
keepdepfile -d stats -o usesphonyoutputs=yes -o preremoveoutputs=yes -w 
dupbuild=err -w outputdir=err -w missingoutfile=err -j 160 --frontend_file 
out/.ninja_fifo -f out/soong/bootstrap.ninja out/soong/build.ninja]
2023/02/06 08:49:02.858057 build/soong/ui/build/exec.go:74: "soong 
bootstrap" finished with exit code 0 (1m8.888s real, 10m0.966s user, 
1m45.73s system, 15230MB maxrss)

In this case, it took 1 minute 8 seconds to complete ninja bootstrap 
"analyzing Android.bp files and generating ninja file at 
out/soong/build.ninja" after simply running "touch" on one Android.bp file 
in vendor/ directory.

On Thursday, February 2, 2023 at 2:29:06 PM UTC+11 Dean Wheatley wrote:

> Is there a better/faster way to develop Android.bp in the AOSP tree than 
> waiting for the many (> 60) seconds it takes to "analyzing Android.bp files 
> and generating ninja file at out/soong/build.ninja" after any change to any 
> Android.bp file in the tree?

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/a1c76e4f-bce9-4cc7-9087-5bda53d5af87n%40googlegroups.com.

Reply via email to